summaryrefslogtreecommitdiffstats
path: root/app/models/version.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2013-12-26 10:33:18 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2013-12-26 10:33:18 +0000
commit25a0bde31115e78ffa1234d52e9726fd69b8739c (patch)
tree900f358249c1f773ff7ececfb0375fb5096f8e46 /app/models/version.rb
parent61c6858b05367f64a5325ba2f9bc94aea7eb7dac (diff)
downloadredmine-25a0bde31115e78ffa1234d52e9726fd69b8739c.tar.gz
redmine-25a0bde31115e78ffa1234d52e9726fd69b8739c.zip
Rails4 compatibility of version group count
git-svn-id: http://svn.redmine.org/redmine/trunk@12465 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/version.rb')
-rw-r--r--app/models/version.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/version.rb b/app/models/version.rb
index e386af53d..8e5e5364a 100644
--- a/app/models/version.rb
+++ b/app/models/version.rb
@@ -232,7 +232,7 @@ class Version < ActiveRecord::Base
unless @issue_count
@open_issues_count = 0
@closed_issues_count = 0
- fixed_issues.count(:all, :group => :status).each do |status, count|
+ fixed_issues.group(:status).count.each do |status, count|
if status.is_closed?
@closed_issues_count += count
else