diff options
author | Trung Lê <joneslee85@gmail.com> | 2013-01-15 04:21:03 +0000 |
---|---|---|
committer | Trung Lê <joneslee85@gmail.com> | 2013-01-15 04:21:03 +0000 |
commit | 21df476f4c0fb491e8172ac12a98982e6253fa85 (patch) | |
tree | 8b919abdc44f4c8bf273abf5a1d3406cf0c1ae71 /actionmailer | |
parent | 1fc294f988e93ac59057a16b0e44b9cf93af9720 (diff) | |
download | rails-21df476f4c0fb491e8172ac12a98982e6253fa85.tar.gz rails-21df476f4c0fb491e8172ac12a98982e6253fa85.tar.bz2 rails-21df476f4c0fb491e8172ac12a98982e6253fa85.zip |
Use Rails 4 find_by in README [ci skip]
Diffstat (limited to 'actionmailer')
-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 ) |