]> source.dussan.org Git - redmine.git/commitdiff
Rails4: replace deprecated find_all_by_* at IssuesController
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 10 Jan 2014 03:39:35 +0000 (03:39 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 10 Jan 2014 03:39:35 +0000 (03:39 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12579 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/issues_controller.rb

index 32c4d1f77d721cb7c2956ca92a3c7edff040e4ca..7818cada0b3b4dec808407317590f6bcbd8d20f9 100644 (file)
@@ -297,7 +297,7 @@ class IssuesController < ApplicationController
     else
       @saved_issues = @issues
       @unsaved_issues = unsaved_issues
-      @issues = Issue.visible.find_all_by_id(@unsaved_issues.map(&:id))
+      @issues = Issue.visible.where(:id => @unsaved_issues.map(&:id)).all
       bulk_edit
       render :action => 'bulk_edit'
     end