Class: Goldberg::UserMailer
- Defined in:
- lib/six-updater-web/vendor/plugins/goldberg/app/models/goldberg/user_mailer.rb
Instance Method Summary collapse
- #confirmation_request(user, sent_at = Time.now) ⇒ Object
- #reset_password(user, password, sent_at = Time.now) ⇒ Object
- #reset_password_request(user, sent_at = Time.now) ⇒ Object
Instance Method Details
#confirmation_request(user, sent_at = Time.now) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/six-updater-web/vendor/plugins/goldberg/app/models/goldberg/user_mailer.rb', line 5 def confirmation_request(user, sent_at = Time.now) @subject = 'Registration confirmation required' @body = { :name => user.fullname, :key => user.confirmation_key, :url_str => "#{Goldberg.settings.site_url_prefix}" + "goldberg/users/confirm_registration/" + "#{user.confirmation_key}" } @recipients = user.email @from = '' @sent_on = sent_at @content_type = 'text/html' @headers = {} end |
#reset_password(user, password, sent_at = Time.now) ⇒ Object
31 32 33 34 35 36 37 38 39 |
# File 'lib/six-updater-web/vendor/plugins/goldberg/app/models/goldberg/user_mailer.rb', line 31 def reset_password(user, password, sent_at = Time.now) @subject = 'Password changed' @body = { :name => user.fullname, :password => password } @recipients = user.email @from = '' @sent_on = sent_at @content_type = 'text/html' @headers = {} end |
#reset_password_request(user, sent_at = Time.now) ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/six-updater-web/vendor/plugins/goldberg/app/models/goldberg/user_mailer.rb', line 18 def reset_password_request(user, sent_at = Time.now) @subject = 'Reset password' @body = { :name => user.fullname, :key => user.confirmation_key, :url_str => "#{Goldberg.settings.site_url_prefix}" + "goldberg/users/reset_password/" + "#{user.confirmation_key}" } @recipients = user.email @from = '' @sent_on = sent_at @content_type = 'text/html' @headers = {} end |