Module Authlogic::Session::Klass::Config
In: lib/authlogic/session/klass.rb

Methods

Public Instance methods

Lets you change which model to use for authentication.

  • Default: inferred from the class name. UserSession would automatically try User
  • Accepts: an ActiveRecord class
authenticate_with=(klass)

Alias for authenticate_with

The string of the model name class guessed from the actual session class name.

The name of the class that this session is authenticating with. For example, the UserSession class will authenticate with the User class unless you specify otherwise in your configuration. See authenticate_with for information on how to change this value.

Same as klass, just returns a string instead of the actual constant.

[Validate]