1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

self.defaults => default

This commit is contained in:
Jeremy Kemper 2010-01-27 17:34:32 -08:00
parent 030ab357f9
commit f2dd3578c0

View file

@ -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