aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Dupret <robin.dupret@gmail.com>2015-02-21 16:59:09 +0100
committerRobin Dupret <robin.dupret@gmail.com>2015-02-21 16:59:09 +0100
commit531cf056422a3838cf67df54d238336bd2b79287 (patch)
tree19ee6173d380ca96ff4f09dda1c2deebaf79b4d8
parent56e788edb38b402c9b081a05f63ed327fbc82254 (diff)
parent793ff7585b2292c7fa6d0e6acc44c8e2c06a47a0 (diff)
downloadrails-531cf056422a3838cf67df54d238336bd2b79287.tar.gz
rails-531cf056422a3838cf67df54d238336bd2b79287.tar.bz2
rails-531cf056422a3838cf67df54d238336bd2b79287.zip
Merge pull request #19026 from rousisk/master
Improve wording on find_by note regarding returning only one record [ci skip]
-rw-r--r--guides/source/active_record_querying.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/guides/source/active_record_querying.md b/guides/source/active_record_querying.md
index ad5103da69..e5a962b739 100644
--- a/guides/source/active_record_querying.md
+++ b/guides/source/active_record_querying.md
@@ -1403,8 +1403,9 @@ WHERE people.name = 'John'
LIMIT 1
```
-NOTE: Remember that, if `find_by` returns more than one registry, it will take
-just the first and ignore the others. Note the `LIMIT 1` statement above.
+NOTE: Note that if a query matches multiple records, `find_by` will
+fetch only the first one and ignore the others (see the `LIMIT 1`
+statement above).
Find or Build a New Object
--------------------------