mongoid/mongoid — comment on commit 245482644c7cebe9535a4dca633bf909626e6d28
File:  line 0
By visnup:

this broke behavior of `any_of` for me. note below that in 2.4.1 the `$or` clause gets split into two separate hashes now, which is a totally different query from when it's one hash.

2.4.0:

~~~ruby
1.9.2p290 :002 > Contact.any_of [{a: 1, b: 2}, {c: 3}]
=> #[{:a=>1, :b=>2}, {:c=>3}]},
options: {},
class: Contact,
embedded: false>
~~~

2.4.1:

~~~ruby
1.9.2p290 :001 > Contact.any_of [{a: 1, b: 2}, {c: 3}]
=> #[{:a=>1}, {:b=>2}, {:c=>3}]},
options: {},
class: Contact,
embedded: false>
~~~