2016-09-08 10:25:33 -05:00
|
|
|
# frozen_string_literal: true
|
2016-08-24 16:26:07 -05:00
|
|
|
# Preview all emails at http://localhost:3000/rails/mailers/user_mailer
|
|
|
|
class UserMailerPreview < ActionMailer::Preview
|
|
|
|
def password_reset
|
|
|
|
user = User.find_by(email: 'alan.admin@mailinator.com')
|
2017-03-06 16:12:31 -06:00
|
|
|
user.send(:gen_reset_token)
|
2016-08-24 16:26:07 -05:00
|
|
|
UserMailer.password_reset user
|
|
|
|
end
|
|
|
|
|
|
|
|
def welcome
|
|
|
|
user = User.find_by(email: 'alan.admin@mailinator.com')
|
|
|
|
UserMailer.welcome user, '[default-password]'
|
|
|
|
end
|
|
|
|
end
|