2010-09-25 07:35:29 -04:00
|
|
|
<% module_namespacing do -%>
|
2014-11-17 05:44:04 -05:00
|
|
|
class <%= class_name %> < ApplicationMailer
|
2011-05-18 23:47:49 -04:00
|
|
|
<% actions.each do |action| -%>
|
2009-06-25 06:57:58 -04:00
|
|
|
|
2010-01-25 07:13:29 -05:00
|
|
|
# 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
|
2010-01-25 07:13:29 -05:00
|
|
|
#
|
|
|
|
def <%= action %>
|
|
|
|
@greeting = "Hi"
|
2010-01-27 20:34:32 -05:00
|
|
|
|
2012-03-13 22:10:32 -04:00
|
|
|
mail to: "to@example.org"
|
2009-06-25 06:57:58 -04:00
|
|
|
end
|
2009-07-30 12:48:11 -04:00
|
|
|
<% end -%>
|
2010-01-27 20:34:32 -05:00
|
|
|
end
|
2010-09-25 07:35:29 -04:00
|
|
|
<% end -%>
|