activerecord-hackery--ransack/lib/ransack/nodes
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
..
attribute.rb Query for negative associations as subquery 2016-02-16 12:01:12 -08:00
bindable.rb Fixes aliased attributes in association searches 2015-12-03 11:35:26 +01:00
condition.rb Query for negative associations as subquery 2016-02-16 12:01:12 -08:00
grouping.rb Freeze strings in array constants and begin moving 2015-08-29 22:52:57 +02:00
node.rb Maintain Ruby 1.8.7 syntax compatibility 2014-05-01 15:55:39 +02:00
sort.rb Refactor: condition handles binding of its attribute 2016-02-11 17:35:24 -08:00
value.rb Cleanup 2014-12-17 19:34:08 +01:00