diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2010-09-25 13:35:29 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-09-25 17:28:10 +0200 |
commit | 51c7660e089017adcf064301188c5b584cb41db0 (patch) | |
tree | e3ad49365e8390940e32af04e07085f92cb272e8 /actionmailer | |
parent | 7acf64a81bfec9f60d001a5412529088373fc4b5 (diff) | |
download | rails-51c7660e089017adcf064301188c5b584cb41db0.tar.gz rails-51c7660e089017adcf064301188c5b584cb41db0.tar.bz2 rails-51c7660e089017adcf064301188c5b584cb41db0.zip |
Add namespacing to mailer generator
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'actionmailer')
-rw-r--r-- | actionmailer/lib/rails/generators/mailer/templates/mailer.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/actionmailer/lib/rails/generators/mailer/templates/mailer.rb b/actionmailer/lib/rails/generators/mailer/templates/mailer.rb index 21e5918ecb..4d21c65101 100644 --- a/actionmailer/lib/rails/generators/mailer/templates/mailer.rb +++ b/actionmailer/lib/rails/generators/mailer/templates/mailer.rb @@ -1,3 +1,4 @@ +<% module_namespacing do -%> class <%= class_name %> < ActionMailer::Base default :from => "from@example.com" <% for action in actions -%> @@ -14,3 +15,4 @@ class <%= class_name %> < ActionMailer::Base end <% end -%> end +<% end -%> |