]> source.dussan.org Git - redmine.git/commitdiff
use "do end" instead of {} at app/models/workflow_permission.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 7 Nov 2020 12:30:47 +0000 (12:30 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 7 Nov 2020 12:30:47 +0000 (12:30 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20285 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/workflow_permission.rb

index 9d63c3e0892c9589cbfd4652b2007eb83f11b719..961796fc377078064bccf4cb989518b848bb29b9 100644 (file)
@@ -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