Permalink
Browse files

Use Rails 4 find_by in README [ci skip]

  • Loading branch information...
1 parent 1fc294f commit 21df476f4c0fb491e8172ac12a98982e6253fa85 @joneslee85 joneslee85 committed Jan 15, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionmailer/README.rdoc
View
@@ -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
)

0 comments on commit 21df476

Please sign in to comment.