mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
8dd76a7a6f
Make clear that the files are not to be run for interpreters. Fixes #23847. Fixes #30690. Closes #23878.
17 lines
388 B
Text
17 lines
388 B
Text
<% 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 -%>
|