summaryrefslogtreecommitdiffstats
path: root/app/models/issue_status.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-01-27 01:24:41 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-01-27 01:24:41 +0000
commit2bdf28262b5293c866078fd57ff0ce8a5e0b7da3 (patch)
tree8187cf173f87a48745427b23a19f7a11b064e673 /app/models/issue_status.rb
parent9c7568c1a1d45ec65884fa9b5cded4a1325eb863 (diff)
downloadredmine-2bdf28262b5293c866078fd57ff0ce8a5e0b7da3.tar.gz
redmine-2bdf28262b5293c866078fd57ff0ce8a5e0b7da3.zip
remove unneeded Relation#all from IssueStatus model
git-svn-id: http://svn.redmine.org/redmine/trunk@12725 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/issue_status.rb')
-rw-r--r--app/models/issue_status.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/issue_status.rb b/app/models/issue_status.rb
index aa7987d00..9c0137950 100644
--- a/app/models/issue_status.rb
+++ b/app/models/issue_status.rb
@@ -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