diff options
Diffstat (limited to 'railties/lib/rails_generator/generators/components/mailer/templates/mailer.rb')
-rw-r--r-- | railties/lib/rails_generator/generators/components/mailer/templates/mailer.rb | 13 |
1 files changed, 13 insertions, 0 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 new file mode 100644 index 0000000000..81c19fa76d --- /dev/null +++ b/railties/lib/rails_generator/generators/components/mailer/templates/mailer.rb @@ -0,0 +1,13 @@ +class <%= class_name %> < ActionMailer::Base +<% for action in actions -%> + + def <%= action %>(sent_on = Time.now) + @subject = '<%= class_name %>#<%= action %>' + @body = {} + @recipients = '' + @from = '' + @sent_on = sent_on + @headers = {} + end +<% end -%> +end |