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 81c19fa76d10ffa660265114ec44923b09a03579..127495fcbbe026ac9e82d8efe0663267d8530449 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 -%>