From a6c18dce132404f52cc83b0cac8a7d14eb87f532 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Thu, 9 Jan 2014 03:51:14 +0000 Subject: [PATCH] Rails4: replace deprecated find_all_by_* at Tracker model git-svn-id: http://svn.redmine.org/redmine/trunk@12548 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/tracker.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/models/tracker.rb b/app/models/tracker.rb index d487de67e..0af3d7186 100644 --- a/app/models/tracker.rb +++ b/app/models/tracker.rb @@ -63,8 +63,7 @@ class Tracker < ActiveRecord::Base connection.select_rows("SELECT DISTINCT old_status_id, new_status_id FROM #{WorkflowTransition.table_name} WHERE tracker_id = #{id} AND type = 'WorkflowTransition'"). flatten. uniq - - @issue_statuses = IssueStatus.find_all_by_id(ids).sort + @issue_statuses = IssueStatus.where(:id => ids).all.sort end def disabled_core_fields