1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/generators/mailer/templates/mailer.rb

14 lines
271 B
Ruby

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