Method: Authlogic::Session::Existence::InstanceMethods#destroy
- Defined in:
- lib/authlogic/session/existence.rb
#destroy ⇒ Object
Clears all errors and the associated record, you should call this terminate a session, thus requring the user to authenticate again if it is needed.
45 46 47 48 49 50 51 52 |
# File 'lib/authlogic/session/existence.rb', line 45 def destroy before_destroy save_record errors.clear @record = nil after_destroy true end |