diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2016-06-02 15:21:15 -0500 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2016-06-06 11:59:49 -0500 |
commit | fa6593b226ab4eae267a45716dde65b641532674 (patch) | |
tree | 172421666c8dc8efd6fc6cac81069ba3f0187b03 /app/controllers/projects/labels_controller.rb | |
parent | f011f038cd6cd1fcb01a18de5774ef7be34d6cef (diff) | |
download | gitlab-ce-fa6593b226ab4eae267a45716dde65b641532674.tar.gz |
Update method and route
Diffstat (limited to 'app/controllers/projects/labels_controller.rb')
-rw-r--r-- | app/controllers/projects/labels_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/projects/labels_controller.rb b/app/controllers/projects/labels_controller.rb index 13f634fdd0e..885dd0eb45d 100644 --- a/app/controllers/projects/labels_controller.rb +++ b/app/controllers/projects/labels_controller.rb @@ -5,7 +5,7 @@ class Projects::LabelsController < Projects::ApplicationController before_action :label, only: [:edit, :update, :destroy] before_action :authorize_read_label! before_action :authorize_admin_labels!, only: [ - :new, :create, :edit, :update, :generate, :destroy + :new, :create, :edit, :update, :generate, :destroy, :remove_priority ] respond_to :js, :html @@ -83,7 +83,7 @@ class Projects::LabelsController < Projects::ApplicationController end end - def set_sorting + def set_priorities Label.transaction do params[:label_ids].each_with_index do |label_id, index| label = @project.labels.find_by_id(label_id) |