Class: ReviseAuth::Mailer

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

Instance Method Summary collapse

Instance Method Details

#confirm_emailObject



2
3
4
5
6
7
# File 'app/mailers/revise_auth/mailer.rb', line 2

def confirm_email
  @user = params[:user]
  @token = params[:token]

  mail to: @user.unconfirmed_email
end

#password_resetObject



9
10
11
12
13
14
# File 'app/mailers/revise_auth/mailer.rb', line 9

def password_reset
  @user = params[:user]
  @token = params[:token]

  mail to: @user.email
end