Class: DeviseMailerPreview

Inherits:
ActionMailer::Preview
  • Object
show all
Defined in:
app/mailers/previews/devise_mailer_preview.rb

Instance Method Summary collapse

Instance Method Details

#confirmation_instructions_for_new_emailObject


8
9
10
11
12
13
# File 'app/mailers/previews/devise_mailer_preview.rb', line 8

def confirmation_instructions_for_new_email
  user = User.last
  user.unconfirmed_email = '[email protected]'

  DeviseMailer.confirmation_instructions(user, 'faketoken', {})
end

#confirmation_instructions_for_signupObject


4
5
6
# File 'app/mailers/previews/devise_mailer_preview.rb', line 4

def 
  DeviseMailer.confirmation_instructions(unsaved_user, 'faketoken', {})
end

#password_changeObject


23
24
25
# File 'app/mailers/previews/devise_mailer_preview.rb', line 23

def password_change
  DeviseMailer.password_change(unsaved_user, {})
end

#reset_password_instructionsObject


15
16
17
# File 'app/mailers/previews/devise_mailer_preview.rb', line 15

def reset_password_instructions
  DeviseMailer.reset_password_instructions(unsaved_user, 'faketoken', {})
end

#unlock_instructionsObject


19
20
21
# File 'app/mailers/previews/devise_mailer_preview.rb', line 19

def unlock_instructions
  DeviseMailer.unlock_instructions(unsaved_user, 'faketoken', {})
end