Skip to content

Commit

Permalink
Update AM example
Browse files Browse the repository at this point in the history
  • Loading branch information
avakhov committed Apr 28, 2012
1 parent c13d36c commit ea6bcce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions actionmailer/README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ the email.
This can be as simple as:

class Notifier < ActionMailer::Base
delivers_from '[email protected]'
default from: '[email protected]'

def welcome(recipient)
@recipient = recipient
mail(:to => recipient,
:subject => "[Signed up] Welcome #{recipient}")
mail(to: recipient,
subject: "[Signed up] Welcome #{recipient}")
end
end

Expand Down

0 comments on commit ea6bcce

Please sign in to comment.