Skip to content

Commit

Permalink
Merge pull request #18332 from gchan/update-adequate-record-notes
Browse files Browse the repository at this point in the history
Include newer `find_by` syntax example in 4.2 release notes for Adequate Record
  • Loading branch information
rafaelfranca committed Jan 4, 2015
2 parents 88b17d2 + 73a45f5 commit 076cb72
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions guides/source/4_2_release_notes.md
Expand Up @@ -92,6 +92,9 @@ Post.find(2) # Subsequent calls reuse the cached prepared statement
Post.find_by_title('first post')
Post.find_by_title('second post')

Post.find_by(title: 'first post')
Post.find_by(title: 'second post')

post.comments
post.comments(true)
```
Expand Down

0 comments on commit 076cb72

Please sign in to comment.