From: Toshi MARUYAMA Date: Thu, 9 Jan 2014 06:34:40 +0000 (+0000) Subject: Rails4: replace deprecated find_all_by_* at IssueQuery model X-Git-Tag: 2.5.0~336 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3ca03beb6f81958b8ca5dcfbb3e51e95a982a674;p=redmine.git Rails4: replace deprecated find_all_by_* at IssueQuery model git-svn-id: http://svn.redmine.org/redmine/trunk@12563 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/models/issue_query.rb b/app/models/issue_query.rb index 43d7cd5fa..43bbd3263 100644 --- a/app/models/issue_query.rb +++ b/app/models/issue_query.rb @@ -409,7 +409,7 @@ class IssueQuery < Query groups = Group.all operator = '!' # Override the operator since we want to find by assigned_to else - groups = Group.find_all_by_id(value) + groups = Group.where(:id => value).all end groups ||= []