diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-10-18 01:00:45 -0200 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-10-19 14:58:27 -0200 |
commit | 007267ef8b927646bab0932b5704ff0f3720253f (patch) | |
tree | dbefa7f1d6cc136f8eb5a5406cb2f1421c6444ab | |
parent | 771d3fc3cbaa2b473c87d23fc1c067fb9bad6206 (diff) | |
download | gitlab-ce-007267ef8b927646bab0932b5704ff0f3720253f.tar.gz |
Use `includes(:priorities)` on Projects::LabelsController
-rw-r--r-- | app/controllers/projects/labels_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/labels_controller.rb b/app/controllers/projects/labels_controller.rb index 42fd09e9b7e..4f855134368 100644 --- a/app/controllers/projects/labels_controller.rb +++ b/app/controllers/projects/labels_controller.rb @@ -126,7 +126,7 @@ class Projects::LabelsController < Projects::ApplicationController alias_method :subscribable_resource, :label def find_labels - @available_labels ||= LabelsFinder.new(current_user, project_id: @project.id).execute + @available_labels ||= LabelsFinder.new(current_user, project_id: @project.id).execute.includes(:priorities) end def authorize_admin_labels! |