From a6097d774edf79058b4623e7790565d6e22d0ed8 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 6 Nov 2020 13:00:36 +0000 Subject: [PATCH] use "do end" instead of {} at WorkflowsController git-svn-id: http://svn.redmine.org/redmine/trunk@20276 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/workflows_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/workflows_controller.rb b/app/controllers/workflows_controller.rb index d53d007f8..d23984042 100644 --- a/app/controllers/workflows_controller.rb +++ b/app/controllers/workflows_controller.rb @@ -61,9 +61,9 @@ class WorkflowsController < ApplicationController if request.post? && @roles && @trackers && params[:permissions] permissions = params[:permissions].deep_dup - permissions.each { |field, rule_by_status_id| + permissions.each do |field, rule_by_status_id| rule_by_status_id.reject! {|status_id, rule| rule == 'no_change'} - } + end WorkflowPermission.replace_permissions(@trackers, @roles, permissions) flash[:notice] = l(:notice_successful_update) redirect_to_referer_or workflows_permissions_path -- 2.39.5