eb0614c44f
Passing a boolean vs using explicit on/off methods feel too low level and doesnt read right in most of these cases.
14 lines
313 B
Ruby
14 lines
313 B
Ruby
class Bubbles::WatchesController < ApplicationController
|
|
include BubbleScoped
|
|
|
|
def create
|
|
@bubble.watch_by Current.user
|
|
redirect_to bucket_bubble_watch_path(@bucket, @bubble)
|
|
end
|
|
|
|
def destroy
|
|
@bubble.unwatch_by Current.user
|
|
redirect_to bucket_bubble_watch_path(@bucket, @bubble)
|
|
end
|
|
end
|