e610bc981e
We can optimize with streams separately, this fixes a bug
14 lines
247 B
Ruby
14 lines
247 B
Ruby
class Cards::WatchesController < ApplicationController
|
|
include CardScoped
|
|
|
|
def create
|
|
@card.watch_by Current.user
|
|
redirect_back_or_to @card
|
|
end
|
|
|
|
def destroy
|
|
@card.unwatch_by Current.user
|
|
redirect_back_or_to @card
|
|
end
|
|
end
|