diff options
author | Gordon Chan <developer.gordon+github@gmail.com> | 2015-01-05 11:53:40 +1300 |
---|---|---|
committer | Gordon Chan <developer.gordon+github@gmail.com> | 2015-01-05 11:53:54 +1300 |
commit | 73a45f5ccda53e1f3c441422580b67c09c194640 (patch) | |
tree | 2e8a7895ef9c1f0567460dcd0e4cf729a5c11a4d /guides/source | |
parent | 5868307b74161063b4476a792b4ad3571ec61817 (diff) | |
download | rails-73a45f5ccda53e1f3c441422580b67c09c194640.tar.gz rails-73a45f5ccda53e1f3c441422580b67c09c194640.tar.bz2 rails-73a45f5ccda53e1f3c441422580b67c09c194640.zip |
[guides] Added newer find_by syntax example in 4.2 release notes for Adequate Record [skip ci]
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/4_2_release_notes.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/guides/source/4_2_release_notes.md b/guides/source/4_2_release_notes.md index e8ddfcc9e2..faff1add9f 100644 --- a/guides/source/4_2_release_notes.md +++ b/guides/source/4_2_release_notes.md @@ -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) ``` |