diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2010-01-27 17:34:32 -0800 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2010-01-27 17:35:51 -0800 |
commit | f2dd3578c08dda24093a40fe054120a5c4967f66 (patch) | |
tree | 3f9beec4e9dc5b055f72d21ac5f9c37f959b9dc9 /railties/lib/generators | |
parent | 030ab357f94d4f3624e0997b4aeb972681180186 (diff) | |
download | rails-f2dd3578c08dda24093a40fe054120a5c4967f66.tar.gz rails-f2dd3578c08dda24093a40fe054120a5c4967f66.tar.bz2 rails-f2dd3578c08dda24093a40fe054120a5c4967f66.zip |
self.defaults => default
Diffstat (limited to 'railties/lib/generators')
-rw-r--r-- | railties/lib/generators/rails/mailer/templates/mailer.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/railties/lib/generators/rails/mailer/templates/mailer.rb b/railties/lib/generators/rails/mailer/templates/mailer.rb index cdc6e41266..ab03dd8d78 100644 --- a/railties/lib/generators/rails/mailer/templates/mailer.rb +++ b/railties/lib/generators/rails/mailer/templates/mailer.rb @@ -1,5 +1,5 @@ class <%= class_name %> < ActionMailer::Base - self.defaults :from => "from@example.com" + defaults :from => "from@example.com" <% for action in actions -%> # Subject can be set in your I18n file at config/locales/en.yml @@ -9,7 +9,8 @@ class <%= class_name %> < ActionMailer::Base # def <%= action %> @greeting = "Hi" - mail(:to => "to@example.org") + + mail :to => "to@example.org" end <% end -%> -end
\ No newline at end of file +end |