1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionmailer/lib/rails/generators/mailer/templates/mailer.rb

18 lines
375 B
Ruby
Raw Normal View History

<% module_namespacing do -%>
class <%= class_name %> < ApplicationMailer
<% actions.each do |action| -%>
# Subject can be set in your I18n file at config/locales/en.yml
# with the following lookup:
#
2012-04-03 09:16:09 -04:00
# en.<%= file_path.tr("/",".") %>.<%= action %>.subject
#
def <%= action %>
@greeting = "Hi"
2010-01-27 20:34:32 -05:00
mail to: "to@example.org"
end
<% end -%>
2010-01-27 20:34:32 -05:00
end
<% end -%>