Sha256: b842c314612eec50c1dd9cc6b4541f661439432a0c2d303f1976cce39aefd490
Contents?: true
Size: 895 Bytes
Versions: 3
Compression:
Stored size: 895 Bytes
Contents
<% module_namespacing do -%> class <%= class_name %> < ActionMailer::Base default from: "<%= goma_config.mailer_sender %>" <% goma_actions.each do |action, subject| -%> # Subject can be set in your I18n file at config/locales/en.yml # with the following lookup: # # en.<%= file_path.tr("/",".") %>.<%= action %>.subject # def <%= goma_config.send("#{action}_method_name") %>(<%= resource_name %>) @<%= resource_name %> = <%= resource_name %> mail to: @<%= resource_name %>.<%= goma_config.email_attribute_name %>, subject: "<%= subject %>" end <% end -%> <% 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("/",".") %>.<%= action %>.subject # def <%= action %> @greeting = "Hi" mail to: "to@example.org" end <% end -%> end <% end -%>
Version data entries
3 entries across 3 versions & 1 rubygems