2018-05-14 14:21:03 +02:00
|
|
|
class DeviseUserMailerPreview < ActionMailer::Preview
|
|
|
|
def confirmation_instructions
|
2018-12-20 16:49:56 +01:00
|
|
|
DeviseUserMailer.confirmation_instructions(user, "faketoken", {})
|
2018-05-14 14:21:03 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
def reset_password_instructions
|
2018-12-20 16:49:56 +01:00
|
|
|
DeviseUserMailer.reset_password_instructions(user, "faketoken", {})
|
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def user
|
|
|
|
User.new(id: 10, email: "usager@example.com")
|
2018-05-14 14:21:03 +02:00
|
|
|
end
|
|
|
|
end
|