Class: UserMailer

Inherits:
ApplicationMailer
  • Object
show all
Defined in:
app/mailers/user_mailer.rb

Instance Method Summary collapse

Instance Method Details

#email_confirm(email) ⇒ Object



8
9
10
# File 'app/mailers/user_mailer.rb', line 8

def email_confirm(email)
  mail(to: email, subject: 'Check Your Email')
end

#email_token(email, token) ⇒ Object



12
13
14
15
# File 'app/mailers/user_mailer.rb', line 12

def email_token(email, token)
  @token = token
  mail(to: email, subject: 'Check Your Email')
end

#password_reset(user_id) ⇒ Object



3
4
5
6
# File 'app/mailers/user_mailer.rb', line 3

def password_reset(user_id)
  @user = User.find(user_id)
  mail(to: @user.email, subject: 'Reset Your Password')
end