diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2004-12-10 18:38:02 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2004-12-10 18:38:02 +0000 |
commit | 5ae593f10b31c5189605ea865b0f9bbfc8a9ef28 (patch) | |
tree | 716c96f956c0fc291607b35e16c938b3f9a465a2 /railties/generators/mailer/templates/mailer.rb | |
parent | 1188d3005a35df9a9ef3fd43b6ab7252b10399aa (diff) | |
download | rails-5ae593f10b31c5189605ea865b0f9bbfc8a9ef28.tar.gz rails-5ae593f10b31c5189605ea865b0f9bbfc8a9ef28.tar.bz2 rails-5ae593f10b31c5189605ea865b0f9bbfc8a9ef28.zip |
Mailer generator should create passing tests
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@111 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
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 |