aboutsummaryrefslogtreecommitdiffstats
path: root/railties/generators/templates/mailer.erb
blob: 5afc254923133d8acb8e7e1be563b63c93bf23ab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require 'action_mailer'

class <%= class_name %> < ActionMailer::Base

<% for action in actions -%>
  def <%= action %>(sent_on = Time.now)
    @recipients = ''
    @from       = ''
    @subject    = ''
    @body       = {}
    @sent_on    = sent_on
  end

<% end -%>
end