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

                               
                                                                                            
                   
                                         




          
<% module_namespacing do -%>
# Preview all emails at http://localhost:3000/rails/mailers/<%= file_path %>
class <%= class_name %>MailerPreview < ActionMailer::Preview
<% actions.each do |action| -%>

  # Preview this email at http://localhost:3000/rails/mailers/<%= file_path %>/<%= action %>
  def <%= action %>
    <%= class_name %>Mailer.<%= action %>
  end
<% end -%>

end
<% end -%>