@@ -52,8 +52,6 class User < Principal | |||
|
52 | 52 | has_one :api_token, :class_name => 'Token', :conditions => "action='api'" |
|
53 | 53 | belongs_to :auth_source |
|
54 | 54 | |
|
55 | # Active non-anonymous users scope | |
|
56 | scope :active, :conditions => "#{User.table_name}.status = #{STATUS_ACTIVE}" | |
|
57 | 55 | scope :logged, :conditions => "#{User.table_name}.status <> #{STATUS_ANONYMOUS}" |
|
58 | 56 | scope :status, lambda {|arg| arg.blank? ? {} : {:conditions => {:status => arg.to_i}} } |
|
59 | 57 |
General Comments 0
You need to be logged in to leave comments.
Login now