use set_reset_password_token

pull/402/head^2^2
Alex Turchyn 2 weeks ago committed by Pete Matsyburka
parent 7a7d3c6ee3
commit 5934bdec55

@ -3,7 +3,7 @@
class DeviseMailerPreview < ActionMailer::Preview class DeviseMailerPreview < ActionMailer::Preview
def reset_password_instructions def reset_password_instructions
user = User.first user = User.first
user.send_reset_password_instructions token = user.send(:set_reset_password_token)
Devise::Mailer.reset_password_instructions(user, user.reset_password_token) Devise::Mailer.reset_password_instructions(user, token)
end end
end end

Loading…
Cancel
Save