This commit is contained in:
Joffrey JAFFEUX 2018-04-26 15:21:02 +02:00 committed by GitHub
parent 9fabf2543b
commit b9c7e09a4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -842,8 +842,8 @@ class User < ActiveRecord::Base
def self.count_by_first_post(start_date, end_date)
joins('INNER JOIN user_stats AS us ON us.user_id = users.id')
.smart_group_by_date("us.first_post_created_at", start_date, end_date)
.count
.smart_group_by_date("us.first_post_created_at", start_date, end_date)
.count
end
def secure_category_ids