diff options
author | José Valim <jose.valim@gmail.com> | 2010-04-30 12:11:38 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-04-30 12:11:38 +0200 |
commit | 7b98d2aa59e301c91d764262bba55133fef3538a (patch) | |
tree | 0965f8c87fd4222ecfa053d9547b523c0a57d146 /actionmailer/lib/rails/generators/mailer/templates | |
parent | d2a49e4b1f30c5997e169110eed94a55aee53f56 (diff) | |
download | rails-7b98d2aa59e301c91d764262bba55133fef3538a.tar.gz rails-7b98d2aa59e301c91d764262bba55133fef3538a.tar.bz2 rails-7b98d2aa59e301c91d764262bba55133fef3538a.zip |
Reorganize the mailer generator a bit.
Diffstat (limited to 'actionmailer/lib/rails/generators/mailer/templates')
-rw-r--r-- | actionmailer/lib/rails/generators/mailer/templates/mailer.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/actionmailer/lib/rails/generators/mailer/templates/mailer.rb b/actionmailer/lib/rails/generators/mailer/templates/mailer.rb new file mode 100644 index 0000000000..7343eb28b3 --- /dev/null +++ b/actionmailer/lib/rails/generators/mailer/templates/mailer.rb @@ -0,0 +1,16 @@ +class <%= class_name %> < ActionMailer::Base + default :from => "from@example.com" +<% for action in actions -%> + + # Subject can be set in your I18n file at config/locales/en.yml + # with the following lookup: + # + # en.actionmailer.<%= file_name %>.<%= action %>.subject + # + def <%= action %> + @greeting = "Hi" + + mail :to => "to@example.org" + end +<% end -%> +end |