aboutsummaryrefslogblamecommitdiffstats
path: root/railties/lib/rails/generators/test_unit/mailer/templates/preview.rb
blob: 9876210b6c3930f88d1a6d6c1e7591e0ca96e068 (plain) (tree)
1
2
3
4
5
6
7
8
9

                             
                            
                                                                                   
                                                            

                               
                                                                                                   
                   
                                         




          
# frozen_string_literal: true

<% 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 -%>