]> source.dussan.org Git - redmine.git/commitdiff
Rails4: replace deprecated find_all_by_* at IssueQuery model
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 9 Jan 2014 06:34:40 +0000 (06:34 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 9 Jan 2014 06:34:40 +0000 (06:34 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12563 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/issue_query.rb

index 43d7cd5fa8cbeed48b371793f93441ffa483a106..43bbd3263b8e90f0bee80ddf4c76bb0042475412 100644 (file)
@@ -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 ||= []