]> source.dussan.org Git - redmine.git/commitdiff
use "do end" instead of {} at WorkflowsController
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 6 Nov 2020 13:00:36 +0000 (13:00 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 6 Nov 2020 13:00:36 +0000 (13:00 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20276 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/workflows_controller.rb

index d53d007f849f972d098c71de250dafc4a4a0d65e..d23984042e4438aab8bd79c9aa7cc224361103c1 100644 (file)
@@ -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