]> source.dussan.org Git - redmine.git/commitdiff
remove unneeded Relation#all from WorkflowsController#edit
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 24 Mar 2014 15:59:45 +0000 (15:59 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 24 Mar 2014 15:59:45 +0000 (15:59 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12999 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/workflows_controller.rb

index 0a9600cba9fb4628a4891c429d579863860b7dd3..fd700d25ea8d508b11b339c820cca5e327cf4548 100644 (file)
@@ -41,7 +41,7 @@ class WorkflowsController < ApplicationController
     end
 
     if @trackers && @roles && @statuses.any?
-      workflows = WorkflowTransition.where(:role_id => @roles.map(&:id), :tracker_id => @trackers.map(&:id)).all
+      workflows = WorkflowTransition.where(:role_id => @roles.map(&:id), :tracker_id => @trackers.map(&:id))
       @workflows = {}
       @workflows['always'] = workflows.select {|w| !w.author && !w.assignee}
       @workflows['author'] = workflows.select {|w| w.author}