diff options
author | Guillermo Iguaran <guilleiguaran@gmail.com> | 2013-01-14 20:31:59 -0800 |
---|---|---|
committer | Guillermo Iguaran <guilleiguaran@gmail.com> | 2013-01-14 20:31:59 -0800 |
commit | d040b3ded0a794b955b3c6f99fe15ab2f64ee3d6 (patch) | |
tree | 8b919abdc44f4c8bf273abf5a1d3406cf0c1ae71 | |
parent | 1fc294f988e93ac59057a16b0e44b9cf93af9720 (diff) | |
parent | 21df476f4c0fb491e8172ac12a98982e6253fa85 (diff) | |
download | rails-d040b3ded0a794b955b3c6f99fe15ab2f64ee3d6.tar.gz rails-d040b3ded0a794b955b3c6f99fe15ab2f64ee3d6.tar.bz2 rails-d040b3ded0a794b955b3c6f99fe15ab2f64ee3d6.zip |
Merge pull request #8947 from joneslee85/patch-1
Use Rails 4 find_by in README [ci skip]
-rw-r--r-- | actionmailer/README.rdoc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionmailer/README.rdoc b/actionmailer/README.rdoc index 59c33b7940..9feb2add5b 100644 --- a/actionmailer/README.rdoc +++ b/actionmailer/README.rdoc @@ -98,7 +98,7 @@ Example: class Mailman < ActionMailer::Base def receive(email) - page = Page.find_by_address(email.to.first) + page = Page.find_by(address: email.to.first) page.emails.create( subject: email.subject, body: email.body ) |