aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2013-01-12 15:05:07 +0100
committerYves Senn <yves.senn@gmail.com>2013-01-13 00:20:38 +0100
commitec07735641e4df13b644a85f1f300cf20134995a (patch)
tree5540e6545472ef3a4916f6915bb957530d7835a4 /activerecord/CHANGELOG.md
parent6581d798e830a7820dd54fe95d40014c0e2057fe (diff)
downloadrails-ec07735641e4df13b644a85f1f300cf20134995a.tar.gz
rails-ec07735641e4df13b644a85f1f300cf20134995a.tar.bz2
rails-ec07735641e4df13b644a85f1f300cf20134995a.zip
`CollectionAssociation#empty?` respects newly builded records
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 5a0c391154..68ed6cdf51 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,5 +1,16 @@
## Rails 4.0.0 (unreleased) ##
+* Collection associations `#empty?` always respects builded records.
+ Fix #8879.
+
+ Example:
+
+ widget = Widget.new
+ widget.things.build
+ widget.things.empty? # => false
+
+ *Yves Senn*
+
* Remove support for parsing YAML parameters from request.
*Aaron Patterson*