]> source.dussan.org Git - redmine.git/commitdiff
Rails4: replace deprecated find_all_by_* at IssueQuery model
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 7 Jan 2014 15:54:47 +0000 (15:54 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 7 Jan 2014 15:54:47 +0000 (15:54 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12498 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/issue_query.rb

index 66f520d640a0db3504b745dfc4efbc1f51174f9d..43d7cd5fa8cbeed48b371793f93441ffa483a106 100644 (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!