diff options
Diffstat (limited to 'railties/generators/mailer/templates/mailer.rb')
-rw-r--r-- | railties/generators/mailer/templates/mailer.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/railties/generators/mailer/templates/mailer.rb b/railties/generators/mailer/templates/mailer.rb index 6621ba9a01..d6e8d1691d 100644 --- a/railties/generators/mailer/templates/mailer.rb +++ b/railties/generators/mailer/templates/mailer.rb @@ -4,11 +4,12 @@ class <%= class_name %> < ActionMailer::Base <% for action in actions -%> def <%= action %>(sent_on = Time.now) + @subject = '<%= class_name %>#<%= action %>' + @body = {} @recipients = '' @from = '' - @subject = '' - @body = {} @sent_on = sent_on + @headers = {} end <% end -%> end |