Modified: trunk/app/models/user.rb (3537 => 3538)
--- trunk/app/models/user.rb 2013-05-09 11:27:36 UTC (rev 3537)
+++ trunk/app/models/user.rb 2013-05-09 11:28:26 UTC (rev 3538)
@@ -28,6 +28,8 @@
has_many :subscriptions, :dependent => :destroy
+ named_scope :users_to_check, :conditions => "activated_at IS NOT NULL AND (account_status IS NULL OR (account_status != 'sleep' AND account_status != 'suspect' AND account_status != 'whitelist'))"
+
def self.most_recent(limit=5)
self.find(:all,
:order => "users.created_at DESC",