Class: Spree::UserMailer
- Inherits:
-
BaseMailer
- Object
- BaseMailer
- Spree::UserMailer
- Defined in:
- app/mailers/spree/user_mailer.rb
Instance Method Summary collapse
- #confirmation_instructions(user, token, _opts = {}) ⇒ Object
- #reset_password_instructions(user, token, *_args) ⇒ Object
Instance Method Details
#confirmation_instructions(user, token, _opts = {}) ⇒ Object
11 12 13 14 15 |
# File 'app/mailers/spree/user_mailer.rb', line 11 def confirmation_instructions(user, token, _opts = {}) @store = Spree::Store.default @confirmation_url = spree.spree_user_confirmation_url(confirmation_token: token, host: @store.url) mail to: user.email, from: from_address(@store), subject: "#{@store.name} #{I18n.t(:subject, scope: [:devise, :mailer, :confirmation_instructions])}" end |
#reset_password_instructions(user, token, *_args) ⇒ Object
5 6 7 8 9 |
# File 'app/mailers/spree/user_mailer.rb', line 5 def reset_password_instructions(user, token, *_args) @store = Spree::Store.default @edit_password_reset_url = spree.edit_spree_user_password_url(reset_password_token: token, host: @store.url) mail to: user.email, from: from_address(@store), subject: "#{@store.name} #{I18n.t(:subject, scope: [:devise, :mailer, :reset_password_instructions])}" end |