activerecord-hackery--ransack/lib/ransack/adapters
Andrew Vit 7e2cf2dc14 Support merging joins across searches using a shared context
When merging search criteria, it's necessary to use the same join
dependency with a shared alias tracker. This can be achieved by passing
a context option when building Search objects.

Rails 3.0: use Model.joins(context.join_associations) to merge relations
with JoinAssociations.

Since Rails 3.1: can use Model.joins(context.join_sources) to merge
relations with Arel::Join nodes.

Since Rails 4.1: only context.join_sources is available as Arel,
context.join_associations stops being supported.
2014-08-15 01:19:06 -07:00
..
active_record Support merging joins across searches using a shared context 2014-08-15 01:19:06 -07:00
active_record.rb Revert "Remove Rails 3 active_record code to optimize for Rails 4" 2014-04-09 23:00:23 -03:00