Rails4: replace deprecated find_all_by_* at IssueQuery model

git-svn-id: http://svn.redmine.org/redmine/trunk@12498 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2014-01-07 15:54:47 +00:00
parent d020a06c5c
commit 52bcc01b32
1 changed files with 1 additions and 1 deletions

View File

@ -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!