summaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-01-10 03:39:35 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-01-10 03:39:35 +0000
commit09147940fab61ffb08c43cc121b641664b537e42 (patch)
treea9b7ed1ef967e5a133e34efb9b550c6acefc98e1 /app/controllers
parent7c10f41ce398b393f7a09ea25e9b51184f59106d (diff)
downloadredmine-09147940fab61ffb08c43cc121b641664b537e42.tar.gz
redmine-09147940fab61ffb08c43cc121b641664b537e42.zip
Rails4: replace deprecated find_all_by_* at IssuesController
git-svn-id: http://svn.redmine.org/redmine/trunk@12579 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/issues_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb
index 32c4d1f77..7818cada0 100644
--- a/app/controllers/issues_controller.rb
+++ b/app/controllers/issues_controller.rb
@@ -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