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:
parent
3a63fe3093
commit
d7d228402e
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue