Sha256: 672080eb3570cf5724da14f977dffc0d440d3209dfc5da4363afece81e7e1d5b

Contents?: true

Size: 388 Bytes

Versions: 219

Compression:

Stored size: 388 Bytes

Contents

<% module_namespacing do -%>
class <%= class_name %>Mailer < ApplicationMailer
<% actions.each do |action| -%>

  # Subject can be set in your I18n file at config/locales/en.yml
  # with the following lookup:
  #
  #   en.<%= file_path.tr("/",".") %>_mailer.<%= action %>.subject
  #
  def <%= action %>
    @greeting = "Hi"

    mail to: "to@example.org"
  end
<% end -%>
end
<% end -%>

Version data entries

219 entries across 214 versions & 15 rubygems

Version Path
actionmailer-7.0.5.1 lib/rails/generators/mailer/templates/mailer.rb.tt
actionmailer-6.1.7.4 lib/rails/generators/mailer/templates/mailer.rb.tt
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/actionmailer-7.0.2.3/lib/rails/generators/mailer/templates/mailer.rb.tt
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/actionmailer-7.0.3.1/lib/rails/generators/mailer/templates/mailer.rb.tt
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/actionmailer-6.1.6.1/lib/rails/generators/mailer/templates/mailer.rb.tt
actionmailer-7.0.5 lib/rails/generators/mailer/templates/mailer.rb.tt
actionmailer-7.0.4.3 lib/rails/generators/mailer/templates/mailer.rb.tt
actionmailer-6.1.7.3 lib/rails/generators/mailer/templates/mailer.rb.tt
actionmailer-6.1.7.2 lib/rails/generators/mailer/templates/mailer.rb.tt
actionmailer-7.0.4.2 lib/rails/generators/mailer/templates/mailer.rb.tt
actionmailer-7.0.4.1 lib/rails/generators/mailer/templates/mailer.rb.tt
actionmailer-6.1.7.1 lib/rails/generators/mailer/templates/mailer.rb.tt
actionmailer-6.0.6.1 lib/rails/generators/mailer/templates/mailer.rb.tt
actionmailer-7.0.4 lib/rails/generators/mailer/templates/mailer.rb.tt
actionmailer-6.1.7 lib/rails/generators/mailer/templates/mailer.rb.tt
actionmailer-6.0.6 lib/rails/generators/mailer/templates/mailer.rb.tt
actionmailer-7.0.3.1 lib/rails/generators/mailer/templates/mailer.rb.tt
actionmailer-6.1.6.1 lib/rails/generators/mailer/templates/mailer.rb.tt
actionmailer-6.0.5.1 lib/rails/generators/mailer/templates/mailer.rb.tt
actionmailer-5.2.8.1 lib/rails/generators/mailer/templates/mailer.rb.tt