Class: UserMailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
app/models/user_mailer.rb

Instance Method Summary collapse

Instance Method Details

#reset_password_instructions(user) ⇒ Object



3
4
5
6
7
8
9
10
# File 'app/models/user_mailer.rb', line 3

def reset_password_instructions(user)
  default_url_options[:host] = Spree::Config[:site_url]

  @edit_password_reset_url = edit_user_password_url(:reset_password_token => user.reset_password_token)

  mail(:to => user.email,
       :subject => Spree::Config[:site_name] + ' ' + I18n.t("password_reset_instructions"))
end