From f19f4a948feb03771b6eb4f5455995e591d313d1 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 7 Nov 2020 12:30:47 +0000 Subject: [PATCH] use "do end" instead of {} at app/models/workflow_permission.rb git-svn-id: http://svn.redmine.org/redmine/trunk@20285 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/workflow_permission.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/models/workflow_permission.rb b/app/models/workflow_permission.rb index 9d63c3e08..961796fc3 100644 --- a/app/models/workflow_permission.rb +++ b/app/models/workflow_permission.rb @@ -46,8 +46,8 @@ class WorkflowPermission < WorkflowRule roles = Array.wrap roles transaction do - permissions.each { |status_id, rule_by_field| - rule_by_field.each { |field, rule| + permissions.each do |status_id, rule_by_field| + rule_by_field.each do |field, rule| where(:tracker_id => trackers.map(&:id), :role_id => roles.map(&:id), :old_status_id => status_id, :field_name => field).destroy_all if rule.present? trackers.each do |tracker| @@ -56,8 +56,8 @@ class WorkflowPermission < WorkflowRule end end end - } - } + end + end end end -- 2.39.5