Module: Authlogic::Config

Included in:
Session::Base
Defined in:
lib/authlogic/config.rb

Overview

Mixed into ‘Authlogic::ActsAsAuthentic::Base` and `Authlogic::Session::Base`.

Constant Summary collapse

E_USE_NORMAL_RAILS_VALIDATION =
<<~EOS
  This Authlogic configuration option (%s) is deprecated. Use normal
  ActiveRecord validation instead. Detailed instructions:
  https://github.com/binarylogic/authlogic/blob/master/doc/use_normal_rails_validation.md
EOS

Class Method Summary collapse

Class Method Details

.extended(klass) ⇒ Object



13
14
15
16
17
18
19
20
21
22
# File 'lib/authlogic/config.rb', line 13

def self.extended(klass)
  klass.class_eval do
    # TODO: Is this a confusing name, given this module is mixed into
    # both `Authlogic::ActsAsAuthentic::Base` and
    # `Authlogic::Session::Base`? Perhaps a more generic name, like
    # `authlogic_config` would be better?
    class_attribute :acts_as_authentic_config
    self.acts_as_authentic_config ||= {}
  end
end