Module: Authlogic::Session::MagicStates::Config

Defined in:
lib/authlogic/session/magic_states.rb

Overview

Configuration for the magic states feature.

Instance Method Summary collapse

Instance Method Details

#disable_magic_states(value = nil) ⇒ Object Also known as: disable_magic_states=

Set this to true if you want to disable the checking of active?, approved?, and confirmed? on your record. This is more or less of a convenience feature, since 99% of the time if those methods exist and return false you will not want the user logging in. You could easily accomplish this same thing with a before_validation method or other callbacks.

  • Default: false

  • Accepts: Boolean


33
34
35
# File 'lib/authlogic/session/magic_states.rb', line 33

def disable_magic_states(value = nil)
  rw_config(:disable_magic_states, value, false)
end