Class: UserMailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
lib/rails/generators/simple_login/templates/mailers/user_mailer.rb

Instance Method Summary collapse

Instance Method Details

#account_confirmation(user) ⇒ Object



14
15
16
17
# File 'lib/rails/generators/simple_login/templates/mailers/user_mailer.rb', line 14

def (user)
  @user = user
  mail to: @user.email, subject: "Welcome!"
end

#password_reset(user) ⇒ Object

Subject can be set in your I18n file at config/locales/en.yml with the following lookup:

en.user_mailer.password_reset.subject


9
10
11
12
# File 'lib/rails/generators/simple_login/templates/mailers/user_mailer.rb', line 9

def password_reset(user)
  @user = user
  mail to: user.email, subject: "Password Reset"
end