diff options
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 -%> |