aboutsummaryrefslogtreecommitdiffstats
path: root/railties/generators/templates/mailer.erb
diff options
context:
space:
mode:
Diffstat (limited to 'railties/generators/templates/mailer.erb')
-rw-r--r--railties/generators/templates/mailer.erb15
1 files changed, 15 insertions, 0 deletions
diff --git a/railties/generators/templates/mailer.erb b/railties/generators/templates/mailer.erb
new file mode 100644
index 0000000000..5afc254923
--- /dev/null
+++ b/railties/generators/templates/mailer.erb
@@ -0,0 +1,15 @@
+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