Files
fizzy/app/controllers/buckets/subscriptions_controller.rb
T
2025-02-26 10:53:03 +00:00

12 lines
239 B
Ruby

class Buckets::SubscriptionsController < ApplicationController
include BucketScoped
def update
if params[:subscribed] == "1"
@bucket.subscribe(Current.user)
else
@bucket.unsubscribe(Current.user)
end
end
end