1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix CHANGELOG entry [ci skip]

This commit is contained in:
Rafael Mendonça França 2012-10-04 10:23:27 -03:00
parent 3a63fe3093
commit d7d228402e

View file

@ -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