Skip to content
This repository
Browse code

Make AM readme example more consistent

At 4a6eba3 mail sending example was rewrited from rails 2 format to
modern rails 3 approach. But passing parameter `recipient` to method
Notifier#welcome was lost.

Passing email as parameter makes this example more solid.
  • Loading branch information...
commit 98ed2d43c4fb49bf1a45e4f3ddd2502bac5b1caf 1 parent d2a7998
Alexey Vakhov avakhov authored

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. +3 3 actionmailer/README.rdoc
6 actionmailer/README.rdoc
Source Rendered
@@ -67,12 +67,12 @@ simply call the method and optionally call +deliver+ on the return value.
67 67
68 68 Calling the method returns a Mail Message object:
69 69
70   - message = Notifier.welcome # => Returns a Mail::Message object
71   - message.deliver # => delivers the email
  70 + message = Notifier.welcome("david@loudthinking.com") # => Returns a Mail::Message object
  71 + message.deliver # => delivers the email
72 72
73 73 Or you can just chain the methods together like:
74 74
75   - Notifier.welcome.deliver # Creates the email and sends it immediately
  75 + Notifier.welcome("david@loudthinking.com").deliver # Creates the email and sends it immediately
76 76
77 77 == Setting defaults
78 78

0 comments on commit 98ed2d4

Please sign in to comment.
Something went wrong with that request. Please try again.