提交 d7d22840 编写于 作者: R Rafael Mendonça França

Fix CHANGELOG entry [ci skip]

上级 3a63fe30
## 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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册