Mercurial > hg > soundsoftware-site
comparison test/functional/workflows_controller_test.rb @ 1517:dffacf8a6908 redmine-2.5
Update to Redmine SVN revision 13367 on 2.5-stable branch
author | Chris Cannam |
---|---|
date | Tue, 09 Sep 2014 09:29:00 +0100 |
parents | e248c7af89ec |
children |
comparison
equal
deleted
inserted
replaced
1516:b450a9d58aed | 1517:dffacf8a6908 |
---|---|
337 # Returns an array of status transitions that can be compared | 337 # Returns an array of status transitions that can be compared |
338 def status_transitions(conditions) | 338 def status_transitions(conditions) |
339 WorkflowTransition. | 339 WorkflowTransition. |
340 where(conditions). | 340 where(conditions). |
341 order('tracker_id, role_id, old_status_id, new_status_id'). | 341 order('tracker_id, role_id, old_status_id, new_status_id'). |
342 all. | |
343 collect {|w| [w.old_status, w.new_status_id]} | 342 collect {|w| [w.old_status, w.new_status_id]} |
344 end | 343 end |
345 end | 344 end |