Module: ToggleSubscriptionAction
- Extended by:
- ActiveSupport::Concern
- Included in:
- Groups::LabelsController, Projects::IssuesController, Projects::LabelsController, Projects::MergeRequestsController
- Defined in:
- app/controllers/concerns/toggle_subscription_action.rb
Instance Method Summary collapse
Instance Method Details
#toggle_subscription ⇒ Object
6 7 8 9 10 11 12 |
# File 'app/controllers/concerns/toggle_subscription_action.rb', line 6 def toggle_subscription return unless current_user subscribable_resource.toggle_subscription(current_user, subscribable_project) head :ok end |