module Authlogic::ActsAsAuthentic::EmailToken::Config
Public Instance Methods
activation_method(value = nil)
click to toggle source
Configures the name of the account activation boolean column. The default method name is activate
. See +Authlogic::ActsAsAuthentic::EmailToken::Confirmation#confirm_email+ for more info.
# File lib/authlogic/acts_as_authentic/email_token.rb, line 30 def activation_method(value = nil) rw_config(:activation_method, value, :activate) end
Also aliased as: activation_method=
confirmation_mailer_class(value = nil)
click to toggle source
Configures the name of the confirmation mailer class. The default class name is UserMailer
. See Authlogic::ActsAsAuthentic::EmailToken::maybe_deliver_email_confirmation!
for more info.
# File lib/authlogic/acts_as_authentic/email_token.rb, line 39 def confirmation_mailer_class(value = nil) rw_config(:confirmation_mailer_class, value, :UserMailer) end
Also aliased as: confirmation_mailer_class=
confirmation_mailer_method(value = nil)
click to toggle source
Configures the name of the confirmation mailer method. The default method name is email_confirmation
. See Authlogic::ActsAsAuthentic::EmailToken::maybe_deliver_email_confirmation!
for more info.
# File lib/authlogic/acts_as_authentic/email_token.rb, line 48 def confirmation_mailer_method(value = nil) rw_config(:confirmation_mailer_method, value, :email_confirmation) end
Also aliased as: confirmation_mailer_method=
email_token_valid_for(value = nil)
click to toggle source
# File lib/authlogic/acts_as_authentic/email_token.rb, line 22 def email_token_valid_for(value = nil) rw_config(:email_token_valid_for, (!value.nil? && value.to_i) || value, 10.minutes.to_i) end
Also aliased as: email_token_valid_for=