summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-01-10 07:46:53 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-01-10 07:46:53 +0000
commit4292f4116bbbaa9b486c9e2abae170497669f15a (patch)
tree0fbebe6444132cad532148a868cf11901f54ed17 /app
parentf7a1664399f440f6a856f50bf7b9df7e6da5366c (diff)
downloadredmine-4292f4116bbbaa9b486c9e2abae170497669f15a.tar.gz
redmine-4292f4116bbbaa9b486c9e2abae170497669f15a.zip
Rails4: replace deprecated Relation#count with finder options at ProjectsController#show
git-svn-id: http://svn.redmine.org/redmine/trunk@12592 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/controllers/projects_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index ef1b5c4d2..245d587be 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -151,8 +151,8 @@ class ProjectsController < ApplicationController
cond = @project.project_condition(Setting.display_subprojects_issues?)
- @open_issues_by_tracker = Issue.visible.open.where(cond).count(:group => :tracker)
- @total_issues_by_tracker = Issue.visible.where(cond).count(:group => :tracker)
+ @open_issues_by_tracker = Issue.visible.open.where(cond).group(:tracker).count
+ @total_issues_by_tracker = Issue.visible.where(cond).group(:tracker).count
if User.current.allowed_to?(:view_time_entries, @project)
@total_hours = TimeEntry.visible.where(cond).sum(:hours).to_f