module Authlogic::ActsAsAuthentic::EmailToken
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.
Public Class Methods
included(klass)
click to toggle source
# 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