From 69e0e3f91b5297d0507441f86e13a60f37ec54d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Wed, 19 Sep 2012 12:09:03 -0300 Subject: Improve the CHANGELOG entry for #6971 --- activerecord/CHANGELOG.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index eae36cd258..b064d6f511 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,6 +1,19 @@ ## Rails 4.0.0 (unreleased) ## -* Fix querying with an empty hash *Damien Mathieu* +* Fix the return of querying with an empty hash. + Fix #6971. + + User.where(token: {}) + + Before: + + #=> SELECT * FROM users; + + After: + + #=> SELECT * FROM users WHERE 1 = 2; + + *Damien Mathieu* * Fix creation of through association models when using `collection=[]` on a `has_many :through` association from an unsaved model. -- cgit v1.2.3