vendor/plugins/authlogic/lib/authlogic/session/base.rb
# Creates / updates a new user session for you. It does all of the magic:
#
# 1. validates
# 2. sets session
# 3. sets cookie
# 4. updates magic fields
Creates / updates a new user session for you. It does all of the magic:
1. validates
2. sets session
3. sets cookie
4. updates magic fields
Creates / updates a new user session for you . It does all of the magic : 1 . validates 2 . sets session 3 . sets cookie 4 . updates magic fields
def save(&block)
        result = nil
        if valid?
          before_save
          new_session? ? before_create : before_update
          new_session? ? after_create : after_update
          after_save
          save_record
          self.new_session = false
          result = self
        else
          result = false
        end
        yield result if result and block_given?
        result
      end
def save ( & block ) result = nil if valid? before_save new_session? ? before_create : before_update new_session? ? after_create : after_update after_save save_record self . new_session = false result = self else result = false end yield result if result and block_given? result end
Creates / updates a new user session for you.
Creates / updates a new user session for you .
# hooks
block
<not_specific>