Sha256: e6390daaa0bba8fa58304422e36a238af6437ef9f43c012370e1c1c5e52ecc4f

Contents?: true

Size: 585 Bytes

Versions: 4

Compression:

Stored size: 585 Bytes

Contents

module Authgasm
  module ControllerAdapters # :nodoc:
    # = Abstract Adapter
    # Allows you to use Authgasm in any framework you want, not just rails. See tha RailsAdapter for an example of how to adapter Authgasm to work with your framework.
    class AbstractAdapter
      attr_accessor :controller
      
      def initialize(controller)
        self.controller = controller
      end
      
      def authenticate_with_http_basic(*args, &block)
      end
      
      def cookies
      end
      
      def request
      end
      
      def session
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
authgasm-0.10.0 lib/authgasm/controller_adapters/abstract_adapter.rb
authgasm-0.10.1 lib/authgasm/controller_adapters/abstract_adapter.rb
authgasm-0.10.2 lib/authgasm/controller_adapters/abstract_adapter.rb
authgasm-0.10.3 lib/authgasm/controller_adapters/abstract_adapter.rb