Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix CHANGELOG entry [ci skip]

  • Loading branch information...
commit d7d228402efd1ddbbdb2b15d2e91ec22693b9298 1 parent 3a63fe3
@rafaelfranca rafaelfranca authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 activerecord/CHANGELOG.md
View
8 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
Please sign in to comment.
Something went wrong with that request. Please try again.