Created
March 10, 2014 08:45
-
-
Save mackato/9461534 to your computer and use it in GitHub Desktop.
Rails 4.1.0.rc1でdeviseのメールをプレビューする ref: http://qiita.com/mackato/items/3f1e8b78fc80164ddcd6
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
class DevisePreview < ActionMailer::Preview | |
def confirmation_instructions | |
Devise::Mailer.confirmation_instructions(User.new, Devise.friendly_token[0,20]) | |
end | |
end |
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
% mkdir -p test/mailers/previews/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment