File: lib/generators/extension_mailer/templates/mailer.rb

Code

Code

   1  class <%= class_name %> < ActionMailer::Base
   2    
   3  <% for action in actions -%>
   4 
   5    def <%= action %>(sent_at = Time.now)
   6      subject    '<%= class_name %>#<%= action %>'
   7      recipients ''
   8      from       ''
   9      sent_on    sent_at
  10      
  11      body       :greeting => 'Hi,'
  12    end
  13  <% end -%>
  14 
  15  end