From: Toshi MARUYAMA Date: Sat, 7 Nov 2020 12:30:47 +0000 (+0000) Subject: use "do end" instead of {} at app/models/workflow_permission.rb X-Git-Tag: 4.2.0~532 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f19f4a948feb03771b6eb4f5455995e591d313d1;p=redmine.git 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 --- 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