Skip to content
This repository
Browse code

Update AM example

  • Loading branch information...
commit ea6bccea1b96d37a7b68d7d4436a0289972ee8ae 1 parent c13d36c
Alexey Vakhov authored April 28, 2012

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

  1. 6  actionmailer/README.rdoc
6  actionmailer/README.rdoc
Source Rendered
@@ -22,12 +22,12 @@ the email.
22 22
 This can be as simple as:
23 23
 
24 24
   class Notifier < ActionMailer::Base
25  
-    delivers_from 'system@loudthinking.com'
  25
+    default from: 'system@loudthinking.com'
26 26
 
27 27
     def welcome(recipient)
28 28
       @recipient = recipient
29  
-      mail(:to => recipient,
30  
-           :subject => "[Signed up] Welcome #{recipient}")
  29
+      mail(to: recipient,
  30
+           subject: "[Signed up] Welcome #{recipient}")
31 31
     end
32 32
   end
33 33
 

0 notes on commit ea6bcce

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