Method: Sorcery::Model::Submodules::RememberMe::InstanceMethods#forget_me!
- Defined in:
- lib/sorcery/model/submodules/remember_me.rb
#forget_me! ⇒ Object
You shouldn’t really use this one yourself - it’s called by the controller’s ‘forget_me!’ method.
53 54 55 56 57 |
# File 'lib/sorcery/model/submodules/remember_me.rb', line 53 def forget_me! config = sorcery_config self.sorcery_adapter.update_attributes(config.remember_me_token_attribute_name => nil, config.remember_me_token_expires_at_attribute_name => nil) end |