aboutsummaryrefslogtreecommitdiffstats
path: root/railties/generators/mailer/templates/mailer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'railties/generators/mailer/templates/mailer.rb')
-rw-r--r--railties/generators/mailer/templates/mailer.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/railties/generators/mailer/templates/mailer.rb b/railties/generators/mailer/templates/mailer.rb
new file mode 100644
index 0000000000..6621ba9a01
--- /dev/null
+++ b/railties/generators/mailer/templates/mailer.rb
@@ -0,0 +1,14 @@
+require 'action_mailer'
+
+class <%= class_name %> < ActionMailer::Base
+<% for action in actions -%>
+
+ def <%= action %>(sent_on = Time.now)
+ @recipients = ''
+ @from = ''
+ @subject = ''
+ @body = {}
+ @sent_on = sent_on
+ end
+<% end -%>
+end