d5a469d736
completes #25
13 lines
377 B
Ruby
13 lines
377 B
Ruby
# 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')
|
|
UserMailer.password_reset user
|
|
end
|
|
|
|
def welcome
|
|
user = User.find_by(email: 'alan.admin@mailinator.com')
|
|
UserMailer.welcome user, '[default-password]'
|
|
end
|
|
end
|