2007-01-22 14:43:50 +01:00
|
|
|
class <%= class_name %> < ActionMailer::Base
|
2008-05-18 06:22:34 +02:00
|
|
|
|
2007-01-22 14:43:50 +01:00
|
|
|
<% for action in actions -%>
|
|
|
|
|
|
|
|
def <%= action %>(sent_at = Time.now)
|
2008-05-18 06:22:34 +02:00
|
|
|
subject '<%= class_name %>#<%= action %>'
|
|
|
|
recipients ''
|
|
|
|
from ''
|
|
|
|
sent_on sent_at
|
|
|
|
|
|
|
|
body :greeting => 'Hi,'
|
2007-01-22 14:43:50 +01:00
|
|
|
end
|
|
|
|
<% end -%>
|
2008-05-18 06:22:34 +02:00
|
|
|
|
2007-01-22 14:43:50 +01:00
|
|
|
end
|