From 52bcc01b3217f46810800b58f8e3c9192209eada Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Tue, 7 Jan 2014 15:54:47 +0000 Subject: [PATCH] Rails4: replace deprecated find_all_by_* at IssueQuery model git-svn-id: http://svn.redmine.org/redmine/trunk@12498 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/issue_query.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/issue_query.rb b/app/models/issue_query.rb index 66f520d64..43d7cd5fa 100644 --- a/app/models/issue_query.rb +++ b/app/models/issue_query.rb @@ -142,7 +142,7 @@ class IssueQuery < Query if all_projects.any? principals += Principal.member_of(all_projects) end - versions = Version.visible.find_all_by_sharing('system') + versions = Version.visible.where(:sharing => 'system').all issue_custom_fields = IssueCustomField.where(:is_for_all => true) end principals.uniq!