Module: AuthlogicConnect::Common::Session::InstanceMethods

Defined in:
lib/authlogic_connect/common/session.rb

Instance Method Summary collapse

Instance Method Details

#save(&block) ⇒ Object

core save method coordinating how to save the session. want to destroy the block if we redirect to a remote service, that’s it. otherwise the block contains the render methods we wan to use



16
17
18
19
20
21
22
23
24
25
# File 'lib/authlogic_connect/common/session.rb', line 16

def save(&block)
  self.errors.clear
  # log_state
  authenticate_via_protocol(block_given?) do |redirecting|
    block = nil if redirecting
    result = super(&block)
    cleanup_authentication_session unless block.nil?
    result
  end
end