From 3c2098eb1400deef8bd4eb729fc710517d33448c Mon Sep 17 00:00:00 2001 From: rgarcia Date: Thu, 16 Jun 2016 18:40:05 +0200 Subject: [PATCH] improves legibility of counts --- app/controllers/admin/stats_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/admin/stats_controller.rb b/app/controllers/admin/stats_controller.rb index 5543a2d1f..7e5b902e9 100644 --- a/app/controllers/admin/stats_controller.rb +++ b/app/controllers/admin/stats_controller.rb @@ -25,11 +25,11 @@ class Admin::StatsController < Admin::BaseController def proposal_notifications @proposal_notifications = ProposalNotification.all - @proposals_with_notifications = @proposal_notifications.distinct.count(:proposal_id) + @proposals_with_notifications = @proposal_notifications.select(:proposal_id).distinct.count end def direct_messages @direct_messages = DirectMessage.count - @users_who_have_sent_message = DirectMessage.distinct.count(:sender_id) + @users_who_have_sent_message = DirectMessage.select(:sender_id).distinct.count end end