Dashboard: split out private messages from topic and post counts; re-enable report_spec because I think I fixed it...

This commit is contained in:
Neil Lalonde
2013-04-03 13:25:52 -04:00
parent 738789f336
commit bb18b6cb9b
12 changed files with 149 additions and 66 deletions

View File

@ -479,8 +479,8 @@ class User < ActiveRecord::Base
Summarize.new(bio_cooked).summary
end
def self.count_by_signup_date(since=30.days.ago)
where('created_at > ?', since).group('date(created_at)').order('date(created_at)').count
def self.count_by_signup_date(sinceDaysAgo=30)
where('created_at > ?', sinceDaysAgo.days.ago).group('date(created_at)').order('date(created_at)').count
end
def self.counts_by_trust_level