From 5f5f19b06d8a4db4a61055280660dc57180ff47c Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 23 Mar 2005 14:16:46 +0000 Subject: _at is better for Time.now than _on git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@988 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- .../rails_generator/generators/components/mailer/templates/mailer.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'railties/lib/rails_generator/generators/components') 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 -%> -- cgit v1.2.3