Let's you know if the session is being persisted or not, meaning the user does not have to explicitly log in in order to be logged in. If the session has no associated record, it will try to find a record and persist the session. This is the method that the class level method find uses to ultimately persist the session.
# File lib/authlogic/session/persistence.rb, line 51 def persisting? return true if !record.nil? self.attempted_record = nil self.remember_me = !cookie_credentials.nil? && !cookie_credentials[2].nil? before_persisting persist ensure_authentication_attempted if errors.empty? && !attempted_record.nil? self.record = attempted_record after_persisting save_record self.new_session = false true else false end end
Generated with the Darkfish Rdoc Generator 2.