]> source.dussan.org Git - redmine.git/commitdiff
code layout clean up app/models/workflow_transition.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 25 Nov 2019 06:32:49 +0000 (06:32 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 25 Nov 2019 06:32:49 +0000 (06:32 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19286 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/workflow_transition.rb

index d6e9401c3ff32601507fbf1613a93daabc5747ba..1035314711019066570c9312ad36ec649422b85d 100644 (file)
@@ -52,7 +52,12 @@ class WorkflowTransition < WorkflowRule
 
                 if transition == "1" || transition == true
                   unless w
-                    w = WorkflowTransition.new(:old_status_id => old_status_id, :new_status_id => new_status_id, :tracker_id => tracker.id, :role_id => role.id)
+                    w = WorkflowTransition.new(
+                          :old_status_id => old_status_id,
+                          :new_status_id => new_status_id,
+                          :tracker_id => tracker.id,
+                          :role_id => role.id
+                        )
                     records << w
                   end
                   w.author = true if rule == "author"