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.1.5 lib/rails/generators/mailer/templates/mailer.rb.tt
actionmailer-7.1.4.2 lib/rails/generators/mailer/templates/mailer.rb.tt
actionmailer-7.0.8.6 lib/rails/generators/mailer/templates/mailer.rb.tt
actionmailer-6.1.7.10 lib/rails/generators/mailer/templates/mailer.rb.tt
actionmailer-6.1.7.9 lib/rails/generators/mailer/templates/mailer.rb.tt
actionmailer-7.1.4.1 lib/rails/generators/mailer/templates/mailer.rb.tt
actionmailer-7.0.8.5 lib/rails/generators/mailer/templates/mailer.rb.tt
actionmailer-7.1.4 lib/rails/generators/mailer/templates/mailer.rb.tt
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/actionmailer-7.0.8.4/lib/rails/generators/mailer/templates/mailer.rb.tt
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/actionmailer-7.1.3.4/lib/rails/generators/mailer/templates/mailer.rb.tt
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/actionmailer-7.0.5.1/lib/rails/generators/mailer/templates/mailer.rb.tt
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/actionmailer-7.0.5.1/lib/rails/generators/mailer/templates/mailer.rb.tt
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/actionmailer-7.0.5.1/lib/rails/generators/mailer/templates/mailer.rb.tt
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/actionmailer-7.1.3.4/lib/rails/generators/mailer/templates/mailer.rb.tt
actionmailer-7.2.0.beta2 lib/rails/generators/mailer/templates/mailer.rb.tt
actionmailer-7.1.3.4 lib/rails/generators/mailer/templates/mailer.rb.tt
actionmailer-7.0.8.4 lib/rails/generators/mailer/templates/mailer.rb.tt
actionmailer-6.1.7.8 lib/rails/generators/mailer/templates/mailer.rb.tt
actionmailer-7.2.0.beta1 lib/rails/generators/mailer/templates/mailer.rb.tt
actionmailer-7.1.3.2 lib/rails/generators/mailer/templates/mailer.rb.tt