summaryrefslogtreecommitdiffstats
path: root/app/models/issue_query.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-01-07 15:54:47 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-01-07 15:54:47 +0000
commit52bcc01b3217f46810800b58f8e3c9192209eada (patch)
treed0cebd18184fac75f00d68f036d2e828dc548ba9 /app/models/issue_query.rb
parentd020a06c5ce02a9ad4ae716b7e1db0a867d7aed7 (diff)
downloadredmine-52bcc01b3217f46810800b58f8e3c9192209eada.tar.gz
redmine-52bcc01b3217f46810800b58f8e3c9192209eada.zip
Rails4: replace deprecated find_all_by_* at IssueQuery model
git-svn-id: http://svn.redmine.org/redmine/trunk@12498 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/issue_query.rb')
-rw-r--r--app/models/issue_query.rb2
1 files changed, 1 insertions, 1 deletions
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!