Module: Authlogic::ActsAsAuthentic::EmailToken
- Defined in:
- lib/authlogic/acts_as_authentic/email_token.rb,
lib/authlogic/acts_as_authentic/email_token/railtie.rb
Overview
An extension to Authlogic for email confirmation tokens. Email confirmation tokens have a value (email_token
) and a timestamp (email_token_updated_at
). Email tokens are never maintained automatically. You must call reset_email_token
or reset_email_token!
yourself. At a minimum, you should do so:
-
When you send a confirmation email.
-
When the user follows the link in a confirmation email.
The internal structure of this module is based on Authlogic’s own modules.
Defined Under Namespace
Modules: Config, Methods Classes: DBStructureError, Railtie
Class Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/authlogic/acts_as_authentic/email_token.rb', line 11 def self.included(klass) klass.class_eval do # Every subclass of ActiveRecord::Base will have the class methods defined in the # Config module. extend Config add_acts_as_authentic_module(Methods) end end |