Permalink
Browse files

Update AM example

  • Loading branch information...
1 parent c13d36c commit ea6bccea1b96d37a7b68d7d4436a0289972ee8ae @avakhov avakhov committed Apr 28, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 actionmailer/README.rdoc
View
@@ -22,12 +22,12 @@ the email.
This can be as simple as:
class Notifier < ActionMailer::Base
- delivers_from 'system@loudthinking.com'
+ default from: 'system@loudthinking.com'
def welcome(recipient)
@recipient = recipient
- mail(:to => recipient,
- :subject => "[Signed up] Welcome #{recipient}")
+ mail(to: recipient,
+ subject: "[Signed up] Welcome #{recipient}")
end
end

0 comments on commit ea6bcce

Please sign in to comment.