Skip to content
Browse files

Improve the CHANGELOG entry for #6971

  • Loading branch information...
1 parent 5dc5560 commit 69e0e3f91b5297d0507441f86e13a60f37ec54d8 @rafaelfranca rafaelfranca committed Sep 19, 2012
Showing with 14 additions and 1 deletion.
  1. +14 −1 activerecord/CHANGELOG.md
View
15 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.

0 comments on commit 69e0e3f

Please sign in to comment.
Something went wrong with that request. Please try again.