aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators/test_unit/mailer/templates/preview.rb.tt
blob: b063cbc47b3e9605f2e662458d87a9dae49a0fa3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
<% module_namespacing do -%>
# 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 %>_mailer/<%= action %>
  def <%= action %>
    <%= class_name %>Mailer.<%= action %>
  end
<% end -%>

end
<% end -%>