From 69b881f34b9281a28f064f9ef90da2b38915e9c5 Mon Sep 17 00:00:00 2001 From: Flaburgan Date: Mon, 26 Jan 2015 10:03:37 +0100 Subject: [PATCH] Fix monthly and halfyear active users count --- app/presenters/statistics_presenter.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/presenters/statistics_presenter.rb b/app/presenters/statistics_presenter.rb index 815092db5..f522b911f 100644 --- a/app/presenters/statistics_presenter.rb +++ b/app/presenters/statistics_presenter.rb @@ -55,11 +55,11 @@ class StatisticsPresenter end def monthly_users - @monthly_users ||= User.halfyear_actives.count + @monthly_users ||= User.monthly_actives.count end def halfyear_users - @halfyear_users ||= User.monthly_actives.count + @halfyear_users ||= User.halfyear_actives.count end def post_counts @@ -122,4 +122,4 @@ class StatisticsPresenter } end -end \ No newline at end of file +end