1
0
Fork 0
mirror of https://github.com/activerecord-hackery/ransack.git synced 2022-11-09 13:47:45 -05:00
activerecord-hackery--ransack/lib
Andrew Vit 96d0fd75ad Query for negative associations as subquery
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.
2016-02-16 12:01:12 -08:00
..
ransack Query for negative associations as subquery 2016-02-16 12:01:12 -08:00
ransack.rb Add support for attribute alias. 2015-09-25 11:59:24 +02:00