-
-
Save gtm19/4b826a4abb8124285a4d4b343bdf9222 to your computer and use it in GitHub Desktop.
Preview Devise Mails
This file contains 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
# app/test/mailers/previews/devise_mailer_preview.rb | |
class DeviseMailerPreview < 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