origin
origin copied to clipboard
Ensure chaining #where calls can merge on the same key.
See mongoid/mongoid#2396
Ex:
Post.where(:'comments.author_id' => u1.id).where(:'comments.author_id'.ne => u2.id)