instiki/vendor/rails/railties/lib/rails_generator/generators/components/mailer/templates/mailer.rb

16 lines
287 B
Ruby
Raw Normal View History

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