Sha256: 233d0ee8ac60290f148ceed5d16847847c47893115560c566526537a247eb0ef

Contents?: true

Size: 457 Bytes

Versions: 1

Compression:

Stored size: 457 Bytes

Contents

<% module_namespacing do -%>
# Preview all emails at http://localhost:3000/rails/mailers/<%= file_path %>
class <%= class_name %><%= 'Mailer' unless class_name.end_with?('Mailer') %>Preview < ActionMailer::Preview
<% actions.each do |action| -%>

  # Preview this email at http://localhost:3000/rails/mailers/<%= file_path %>/<%= action %>
  def <%= action %>
    <%= class_name.sub(/(Mailer)?$/, 'Mailer') %>.<%= action %>
  end
<% end -%>

end
<% end -%>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rspec-rails-6.1.2 lib/generators/rspec/mailer/templates/preview.rb