summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-25 06:32:49 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-25 06:32:49 +0000
commit13ce734fc86c29690837416ab2661cc73a5c0980 (patch)
tree61fc875287f9b824f3470a07a9dfe983bd154e55 /app
parent0bdd2454b2f4978a56c1a22971a5d7ae0fbc54c5 (diff)
downloadredmine-13ce734fc86c29690837416ab2661cc73a5c0980.tar.gz
redmine-13ce734fc86c29690837416ab2661cc73a5c0980.zip
code layout clean up app/models/workflow_transition.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19286 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/models/workflow_transition.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/models/workflow_transition.rb b/app/models/workflow_transition.rb
index d6e9401c3..103531471 100644
--- a/app/models/workflow_transition.rb
+++ b/app/models/workflow_transition.rb
@@ -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"