Sha256: 588a58af1aa468b36b9a05daa95498eb31520c63943730d9c20b6ce312aaa083

Contents?: true

Size: 629 Bytes

Versions: 9

Compression:

Stored size: 629 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
      def save(&block)
        block_destroyed = false
        if authenticating_with_openid?
          block_destroyed = save_with_openid(&block)
        elsif authenticating_with_oauth?
          block_destroyed = save_with_oauth(&block)
        end
        block = nil if block_destroyed
        super(&block)
      end
    end
    
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
lsdr-authlogic-connect-0.0.3.9 lib/authlogic_connect/common/session.rb
authlogic-connect-0.0.3.9 lib/authlogic_connect/common/session.rb
authlogic-connect-0.0.3.8 lib/authlogic_connect/common/session.rb
authlogic-connect-0.0.3.6 lib/authlogic_connect/common/session.rb
authlogic-connect-0.0.3.4 lib/authlogic_connect/common/session.rb
authlogic-connect-0.0.3.3 lib/authlogic_connect/common/session.rb
authlogic-connect-0.0.3.2 lib/authlogic_connect/common/session.rb
authlogic-connect-0.0.2 lib/authlogic_connect/common/session.rb
authlogic-connect-0.0.1 lib/authlogic_connect/common/session.rb