Forked from ThawanFidelis/preview_devise_mail.rb
Last active
December 11, 2020 02:33
-
-
Save dsandstrom/619ee5885ebc4d9f5fa7dcb8fb1c857f to your computer and use it in GitHub Desktop.
Preview Devise Mails
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# spec/mailers/previews/devise_mailer_preview.rb | |
class Devise::MailerPreview < ActionMailer::Preview | |
def confirmation_instructions | |
Devise::Mailer.confirmation_instructions(User.first, {}) | |
end | |
def unlock_instructions | |
Devise::Mailer.unlock_instructions(User.first, "faketoken") | |
end | |
def reset_password_instructions | |
Devise::Mailer.reset_password_instructions(User.first, "faketoken") | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment