fixed up mailer preview bug

This commit is contained in:
Mark Moser 2017-03-06 16:12:31 -06:00
parent 8d36acd28e
commit 2c0020a280

View File

@ -3,6 +3,7 @@
class UserMailerPreview < ActionMailer::Preview
def password_reset
user = User.find_by(email: 'alan.admin@mailinator.com')
user.send(:gen_reset_token)
UserMailer.password_reset user
end