From: Toshi MARUYAMA Date: Fri, 6 Nov 2020 13:00:36 +0000 (+0000) Subject: use "do end" instead of {} at WorkflowsController X-Git-Tag: 4.2.0~541 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a6097d774edf79058b4623e7790565d6e22d0ed8;p=redmine.git use "do end" instead of {} at WorkflowsController git-svn-id: http://svn.redmine.org/redmine/trunk@20276 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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