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:
parent
030ab357f9
commit
f2dd3578c0
1 changed files with 4 additions and 3 deletions
|
@ -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
|
Loading…
Reference in a new issue