aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/4_2_release_notes.md
diff options
context:
space:
mode:
authorGordon Chan <developer.gordon+github@gmail.com>2015-01-05 11:53:40 +1300
committerGordon Chan <developer.gordon+github@gmail.com>2015-01-05 11:53:54 +1300
commit73a45f5ccda53e1f3c441422580b67c09c194640 (patch)
tree2e8a7895ef9c1f0567460dcd0e4cf729a5c11a4d /guides/source/4_2_release_notes.md
parent5868307b74161063b4476a792b4ad3571ec61817 (diff)
downloadrails-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/4_2_release_notes.md')
-rw-r--r--guides/source/4_2_release_notes.md3
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)
```