Skip to content

Commit

Permalink
Rename named_scope to scope
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Pokosh committed Feb 26, 2010
1 parent 61f0704 commit eb06998
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/authlogic/acts_as_authentic/logged_in_status.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ def self.included(klass)
klass.class_eval do
include InstanceMethods

named_scope :logged_in, lambda { {:conditions => ["last_request_at > ?", logged_in_timeout.seconds.ago]} }
named_scope :logged_out, lambda { {:conditions => ["last_request_at is NULL or last_request_at <= ?", logged_in_timeout.seconds.ago]} }
scope :logged_in, lambda { {:conditions => ["last_request_at > ?", logged_in_timeout.seconds.ago]} }
scope :logged_out, lambda { {:conditions => ["last_request_at is NULL or last_request_at <= ?", logged_in_timeout.seconds.ago]} }
end
end

Expand Down

0 comments on commit eb06998

Please sign in to comment.