module Authlogic::Session::MagicStates::Config
Configuration for the magic states feature.
Public Instance Methods
disable_magic_states(value = nil)
click to toggle source
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
# File lib/authlogic/session/magic_states.rb, line 33 def disable_magic_states(value = nil) rw_config(:disable_magic_states, value, false) end
Also aliased as: disable_magic_states=