Sha256: 088f9584c0cd1d589f807c35167ce9419e76adebf2166444bfaa9dabf843150f
Contents?: true
Size: 825 Bytes
Versions: 12
Compression:
Stored size: 825 Bytes
Contents
# frozen_string_literal: true module Spree class UserMailer < BaseMailer 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 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 end end
Version data entries
12 entries across 12 versions & 1 rubygems