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
autocompl-0.2.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/actionmailer-5.0.1/lib/rails/generators/mailer/templates/mailer.rb
autocompl-0.1.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/actionmailer-5.0.1/lib/rails/generators/mailer/templates/mailer.rb
autocompl-0.1.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/actionmailer-5.0.1/lib/rails/generators/mailer/templates/mailer.rb
autocompl-0.1.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/actionmailer-5.0.1/lib/rails/generators/mailer/templates/mailer.rb
autocompl-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/actionmailer-5.0.1/lib/rails/generators/mailer/templates/mailer.rb
abaci-0.3.0 vendor/bundle/gems/actionmailer-5.0.0/lib/rails/generators/mailer/templates/mailer.rb
actionmailer-5.0.1 lib/rails/generators/mailer/templates/mailer.rb
actionmailer-5.0.1.rc2 lib/rails/generators/mailer/templates/mailer.rb
actionmailer-5.0.1.rc1 lib/rails/generators/mailer/templates/mailer.rb
actionmailer-5.0.0.1 lib/rails/generators/mailer/templates/mailer.rb
actionmailer-5.0.0 lib/rails/generators/mailer/templates/mailer.rb
actionmailer-5.0.0.rc2 lib/rails/generators/mailer/templates/mailer.rb
actionmailer-5.0.0.racecar1 lib/rails/generators/mailer/templates/mailer.rb
actionmailer-5.0.0.rc1 lib/rails/generators/mailer/templates/mailer.rb
actionmailer-5.0.0.beta4 lib/rails/generators/mailer/templates/mailer.rb
actionmailer-5.0.0.beta3 lib/rails/generators/mailer/templates/mailer.rb
actionmailer-5.0.0.beta2 lib/rails/generators/mailer/templates/mailer.rb
actionmailer-5.0.0.beta1.1 lib/rails/generators/mailer/templates/mailer.rb
actionmailer-5.0.0.beta1 lib/rails/generators/mailer/templates/mailer.rb