vendor/plugins/authlogic/lib/authlogic/session/base.rb
# A convenience method for session.find_record. Finds your session by parameters, then session, then cookie, and finally by basic http auth.
# This is perfect for persisting your session:
#
#   helper_method :current_user_session, :current_user
#
#   def current_user_session
#     return @current_user_session if defined?(@current_user_session)
#     @current_user_session = UserSession.find
#   end
#
#   def current_user
#     return @current_user if defined?(@current_user)
#     @current_user = current_user_session && current_user_session.user
#   end
#
# Accepts a single parameter as the id, to find session that you marked with an id:
#
#   UserSession.find(:secure)
#
# See the id method for more information on ids.
A convenience method for session.find_record. Finds your session by parameters, then session, then cookie, and finally by basic http auth.
This is perfect for persisting your session.







Accepts a single parameter as the id, to find session that you marked with an id.



See the id method for more information on ids.
A convenience method for session . find_record . Finds your session by parameters then session then cookie and finally by basic http auth . This is perfect for persisting your session . Accepts a single parameter as the id to find session that you marked with an id . See the id method for more information on ids .
def find(id = nil, priority_record = nil)
          session = new(id)
          session.priority_record = priority_record
          session.before_find
          if session.find_record
            session.after_find
            session.save_record
            session
          else
            nil
          end
        end
def find ( id = nil , priority_record = nil ) session = new ( id ) session . priority_record = priority_record session . before_find if session . find_record session . after_find session . save_record session else nil end end
A convenience method for session.find_record.
A convenience method for session . find_record .
id
<not_specific>
priority_record
<not_specific>