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

Version Path
robdimarco-authlogic-connect-0.0.6 lib/authlogic_connect/common/session.rb
anideo-authlogic-connect-0.0.6 lib/authlogic_connect/common/session.rb
jspooner-authlogic-connect-0.0.20 lib/authlogic_connect/common/session.rb
jspooner-authlogic-connect-0.0.19 lib/authlogic_connect/common/session.rb
foreverman-authlogic-connect-0.0.4 lib/authlogic_connect/common/session.rb
foreverman-authlogic-connect-0.0.3 lib/authlogic_connect/common/session.rb
foreverman-authlogic-connect-0.0.2 lib/authlogic_connect/common/session.rb
foreverman-authlogic-connect-0.0.1 lib/authlogic_connect/common/session.rb
foreverman-authlogic-connect-0.0.6 lib/authlogic_connect/common/session.rb
authlogic-connect-andrewacove-0.5.7 lib/authlogic_connect/common/session.rb
authlogic-connect-0.0.6 lib/authlogic_connect/common/session.rb
authlogic-connect-0.0.5.1 lib/authlogic_connect/common/session.rb
authlogic-connect-0.0.5 lib/authlogic_connect/common/session.rb
authlogic-connect-andrewacove-0.5.6 lib/authlogic_connect/common/session.rb
authlogic-connect-andrewacove-0.5.5 lib/authlogic_connect/common/session.rb
authlogic-connect-andrewacove-0.5.4 lib/authlogic_connect/common/session.rb
authlogic-connect-andrewacove-0.5.2 lib/authlogic_connect/common/session.rb
authlogic-connect-andrewacove-0.5.0 lib/authlogic_connect/common/session.rb
authlogic-connect-0.0.4.06 lib/authlogic_connect/common/session.rb
authlogic-connect-x-0.0.4.05x lib/authlogic_connect/common/session.rb