Skip to content

Commit ea6bcce

Browse files
committed
Update AM example
1 parent c13d36c commit ea6bcce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

actionmailer/README.rdoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ the email.
2222
This can be as simple as:
2323

2424
class Notifier < ActionMailer::Base
25-
delivers_from '[email protected]'
25+
default from: '[email protected]'
2626

2727
def welcome(recipient)
2828
@recipient = recipient
29-
mail(:to => recipient,
30-
:subject => "[Signed up] Welcome #{recipient}")
29+
mail(to: recipient,
30+
subject: "[Signed up] Welcome #{recipient}")
3131
end
3232
end
3333

0 commit comments

Comments
 (0)