]> source.dussan.org Git - redmine.git/commitdiff
remove unneeded Relation#all from IssueStatus model
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 27 Jan 2014 01:24:41 +0000 (01:24 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 27 Jan 2014 01:24:41 +0000 (01:24 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12725 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/issue_status.rb

index aa7987d002e5fd91f549d9237a1020e87cc710f7..9c013795036c4a697b1a2817d8f03dc2bb641e0d 100644 (file)
@@ -43,7 +43,7 @@ class IssueStatus < ActiveRecord::Base
   # Update all the +Issues+ setting their done_ratio to the value of their +IssueStatus+
   def self.update_issue_done_ratios
     if Issue.use_status_for_done_ratio?
-      IssueStatus.where("default_done_ratio >= 0").all.each do |status|
+      IssueStatus.where("default_done_ratio >= 0").each do |status|
         Issue.where({:status_id => status.id}).update_all({:done_ratio => status.default_done_ratio})
       end
     end