Module: Authlogic::ActsAsAuthentic::EmailToken::Methods::InstanceMethods
- Defined in:
- lib/authlogic/acts_as_authentic/email_token.rb
Instance Method Summary collapse
-
#reset_email_token ⇒ Object
Resets the email token to a random friendly token.
-
#reset_email_token! ⇒ Object
Same as reset_email_token, but then saves the record afterwards.
Instance Method Details
#reset_email_token ⇒ Object
Resets the email token to a random friendly token. Sets email_token_updated_at to the current time.
125 126 127 128 |
# File 'lib/authlogic/acts_as_authentic/email_token.rb', line 125 def reset_email_token self.email_token_updated_at = Time.now self.email_token = Authlogic::Random.friendly_token end |
#reset_email_token! ⇒ Object
Same as reset_email_token, but then saves the record afterwards.
131 132 133 134 |
# File 'lib/authlogic/acts_as_authentic/email_token.rb', line 131 def reset_email_token! reset_email_token save_without_session_maintenance(validate: false) end |