aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/CHANGELOG.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 2a0f1bf92a..714263faea 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,17 +1,17 @@
## Rails 4.0.0 (unreleased) ##
-* `CollectionAssociation#count` returns 0 without querying if the
- parent record is new.
+* `CollectionAssociation#count` returns `0` without querying if the
+ parent record is not persisted.
Before:
- person.pets
+ person.pets.count
# SELECT COUNT(*) FROM "pets" WHERE "pets"."person_id" IS NULL
# => 0
After:
- person.pets
+ person.pets.count
# fires without sql query
# => 0