diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-10-31 17:21:13 -0200 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-11-17 15:10:13 -0200 |
commit | 7fcd469e3eed8c83e6f944c8c8be24820ea2302d (patch) | |
tree | ca3e2e3df01ca0d650490b5c4632553e99e61250 /app/controllers/projects/labels_controller.rb | |
parent | 9a2157a64684a32ba815cd33b0f48cd7ad3945a5 (diff) | |
download | gitlab-ce-7fcd469e3eed8c83e6f944c8c8be24820ea2302d.tar.gz |
Add subscribable_project to ToggleSubscriptionAction concern
Diffstat (limited to 'app/controllers/projects/labels_controller.rb')
-rw-r--r-- | app/controllers/projects/labels_controller.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/projects/labels_controller.rb b/app/controllers/projects/labels_controller.rb index 42fd09e9b7e..93cfd8a7721 100644 --- a/app/controllers/projects/labels_controller.rb +++ b/app/controllers/projects/labels_controller.rb @@ -125,6 +125,10 @@ class Projects::LabelsController < Projects::ApplicationController end alias_method :subscribable_resource, :label + def subscribable_project + @project + end + def find_labels @available_labels ||= LabelsFinder.new(current_user, project_id: @project.id).execute end |