Class: SimpleShowcaseAdmin::UserMailer

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

Instance Method Summary collapse

Instance Method Details

#reset_password_email(user) ⇒ Object



4
5
6
7
8
9
# File 'app/mailers/simple_showcase_admin/user_mailer.rb', line 4

def reset_password_email user
  @user = user
  @url  = "http://0.0.0.0:3000/password_resets/#{user.reset_password_token}/edit"
  mail(:to => user.email,
       :subject => "Your password has been reset")
end