Add blocked users count to dashboard

This commit is contained in:
Neil Lalonde
2013-07-08 12:21:08 -04:00
parent cfc4dda9ff
commit 9b0f63627b
9 changed files with 47 additions and 27 deletions

View File

@ -64,6 +64,7 @@ class User < ActiveRecord::Base
attr_accessor :notification_channel_position
scope :blocked, -> { where(blocked: true) } # no index
scope :banned, -> { where('banned_till IS NOT NULL AND banned_till > ?', Time.zone.now) } # no index
module NewTopicDuration
ALWAYS = -1