Sha256: 85eb54ed3ae4cea9baad5aca7fa17ca6c1ac72ba7d85cba2394dabcda35388b1
Contents?: true
Size: 445 Bytes
Versions: 15
Compression:
Stored size: 445 Bytes
Contents
<% module_namespacing do -%> # Preview all emails at http://localhost:3000/rails/mailers/<%= file_path %> class <%= class_name %>Preview < ActionMailer::Preview <% actions.each do |action| -%> # Preview this email at http://localhost:3000/rails/mailers/<%= file_path %>/<%= action %> def <%= action %> <%= Rails.version.to_f >= 5.0 ? class_name.sub(/(Mailer)?$/, 'Mailer') : class_name %>.<%= action %> end <% end -%> end <% end -%>
Version data entries
15 entries across 15 versions & 2 rubygems