diff options
author | Andrew White <pixeltrix@users.noreply.github.com> | 2015-03-15 09:41:27 +0000 |
---|---|---|
committer | Andrew White <pixeltrix@users.noreply.github.com> | 2015-03-15 09:41:27 +0000 |
commit | b6c038b600487b1adcf8f5e69ba70a992b07e195 (patch) | |
tree | 0ae683802397e387071ee1fb02b20e2d707abbe1 /railties/lib | |
parent | 823508b2f4742179edbc152d9dee697f1656dad8 (diff) | |
parent | 5f6fc9e389e90d44cf07318f0c3c51a12dfcb6a5 (diff) | |
download | rails-b6c038b600487b1adcf8f5e69ba70a992b07e195.tar.gz rails-b6c038b600487b1adcf8f5e69ba70a992b07e195.tar.bz2 rails-b6c038b600487b1adcf8f5e69ba70a992b07e195.zip |
Merge pull request #19339 from y-yagi/mailer_preview_comment
add mailer suffix to comments for email previews
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/generators/test_unit/mailer/templates/preview.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/generators/test_unit/mailer/templates/preview.rb b/railties/lib/rails/generators/test_unit/mailer/templates/preview.rb index 6b85764a66..b063cbc47b 100644 --- a/railties/lib/rails/generators/test_unit/mailer/templates/preview.rb +++ b/railties/lib/rails/generators/test_unit/mailer/templates/preview.rb @@ -1,9 +1,9 @@ <% module_namespacing do -%> -# Preview all emails at http://localhost:3000/rails/mailers/<%= file_path %> +# Preview all emails at http://localhost:3000/rails/mailers/<%= file_path %>_mailer class <%= class_name %>MailerPreview < ActionMailer::Preview <% actions.each do |action| -%> - # Preview this email at http://localhost:3000/rails/mailers/<%= file_path %>/<%= action %> + # Preview this email at http://localhost:3000/rails/mailers/<%= file_path %>_mailer/<%= action %> def <%= action %> <%= class_name %>Mailer.<%= action %> end |