Sha256: 5eee53f98acf0053151abadf3146c8ae69f8ba91bb08239e683593c4d5fcf00a

Contents?: true

Size: 372 Bytes

Versions: 5

Compression:

Stored size: 372 Bytes

Contents

module AuthlogicConnect::Common
  module Variables
    
    def auth_controller
      is_auth_session? ? controller : session_class.controller
    end
    
    def auth_session
      auth_controller.session
    end
    
    def auth_params
      auth_controller.params
    end
    
    def is_auth_session?
      self.is_a?(Authlogic::Session::Base)
    end
    
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
authlogic-connect-0.0.3.4 lib/authlogic_connect/common/variables.rb
authlogic-connect-0.0.3.3 lib/authlogic_connect/common/variables.rb
authlogic-connect-0.0.3.2 lib/authlogic_connect/common/variables.rb
authlogic-connect-0.0.2 lib/authlogic_connect/common/variables.rb
authlogic-connect-0.0.1 lib/authlogic_connect/common/variables.rb