96d0fd75ad
When a collection association (has_many, etc) is searched for negative conditions (NOT...), a JOIN will still include other rows that match. The implied meaning is that it should only select where *none* of the associations match, but the actual result still selects records where *any* of the joined associations match. This implementation removes joins that were added while building the conditions and moves them into a subquery if needed. |
||
---|---|---|
.. | ||
blueprints | ||
helpers | ||
mongoid | ||
ransack | ||
support | ||
console.rb | ||
mongoid_spec_helper.rb | ||
spec_helper.rb |