diff --git a/app/models/user.rb b/app/models/user.rb index 5aac1d1..9350fb9 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -52,8 +52,6 @@ class User < Principal has_one :api_token, :class_name => 'Token', :conditions => "action='api'" belongs_to :auth_source - # Active non-anonymous users scope - scope :active, :conditions => "#{User.table_name}.status = #{STATUS_ACTIVE}" scope :logged, :conditions => "#{User.table_name}.status <> #{STATUS_ANONYMOUS}" scope :status, lambda {|arg| arg.blank? ? {} : {:conditions => {:status => arg.to_i}} }