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:
parent
92a948855e
commit
a6c18dce13
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue