diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-23 14:16:46 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-23 14:16:46 +0000 |
commit | 5f5f19b06d8a4db4a61055280660dc57180ff47c (patch) | |
tree | a58ce0c7f5aa3520013b0689010a12032d566fd8 /railties | |
parent | e7fe15fbac906d17c1e8b93659396adbd150c5cd (diff) | |
download | rails-5f5f19b06d8a4db4a61055280660dc57180ff47c.tar.gz rails-5f5f19b06d8a4db4a61055280660dc57180ff47c.tar.bz2 rails-5f5f19b06d8a4db4a61055280660dc57180ff47c.zip |
_at is better for Time.now than _on
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@988 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails_generator/generators/components/mailer/templates/mailer.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails_generator/generators/components/mailer/templates/mailer.rb b/railties/lib/rails_generator/generators/components/mailer/templates/mailer.rb index 81c19fa76d..127495fcbb 100644 --- a/railties/lib/rails_generator/generators/components/mailer/templates/mailer.rb +++ b/railties/lib/rails_generator/generators/components/mailer/templates/mailer.rb @@ -1,12 +1,12 @@ class <%= class_name %> < ActionMailer::Base <% for action in actions -%> - def <%= action %>(sent_on = Time.now) + def <%= action %>(sent_at = Time.now) @subject = '<%= class_name %>#<%= action %>' @body = {} @recipients = '' @from = '' - @sent_on = sent_on + @sent_on = sent_at @headers = {} end <% end -%> |