Sha256: f700a244cfc4b87c5ff4f5aead825929c3e39c2a5d7169f168754f3617bd4bc7
Contents?: true
Size: 772 Bytes
Versions: 23
Compression:
Stored size: 772 Bytes
Contents
module AuthlogicConnect::Common module Session def self.included(base) base.class_eval do include Variables include InstanceMethods end end module InstanceMethods # 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 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 end end end
Version data entries
23 entries across 23 versions & 7 rubygems