Module: Authlogic::ActsAsAuthentic::EmailToken::Config
- Defined in:
- lib/authlogic/acts_as_authentic/email_token.rb
Instance Method Summary collapse
-
#activation_method(value = nil) ⇒ Object
(also: #activation_method=)
Configures the name of the account activation boolean column.
-
#confirmation_mailer_class(value = nil) ⇒ Object
(also: #confirmation_mailer_class=)
Configures the name of the confirmation mailer class.
-
#confirmation_mailer_method(value = nil) ⇒ Object
(also: #confirmation_mailer_method=)
Configures the name of the confirmation mailer method.
- #email_token_valid_for(value = nil) ⇒ Object (also: #email_token_valid_for=)
Instance Method Details
#activation_method(value = nil) ⇒ Object Also known as: activation_method=
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.
30 31 32 |
# File 'lib/authlogic/acts_as_authentic/email_token.rb', line 30 def activation_method(value = nil) rw_config(:activation_method, value, :activate) end |
#confirmation_mailer_class(value = nil) ⇒ Object Also known as: confirmation_mailer_class=
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.
39 40 41 |
# 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 |
#confirmation_mailer_method(value = nil) ⇒ Object Also known as: confirmation_mailer_method=
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.
48 49 50 |
# 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 |
#email_token_valid_for(value = nil) ⇒ Object Also known as: email_token_valid_for=
22 23 24 |
# 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 |