Rails4: replace deprecated find_all_by_* at Tracker model

git-svn-id: http://svn.redmine.org/redmine/trunk@12548 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2014-01-09 03:51:14 +00:00
parent 92a948855e
commit a6c18dce13
1 changed files with 1 additions and 2 deletions

View File

@ -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'"). connection.select_rows("SELECT DISTINCT old_status_id, new_status_id FROM #{WorkflowTransition.table_name} WHERE tracker_id = #{id} AND type = 'WorkflowTransition'").
flatten. flatten.
uniq uniq
@issue_statuses = IssueStatus.where(:id => ids).all.sort
@issue_statuses = IssueStatus.find_all_by_id(ids).sort
end end
def disabled_core_fields def disabled_core_fields