| Module | Searchlogic::ActiveRecord::Consistency |
| In: |
lib/searchlogic/active_record/consistency.rb
|
Active Record is pretty inconsistent with how their SQL is constructed. This method attempts to close the gap between the various inconsistencies.
This method ensures that the order of the conditions in the joins are the same. The strings of the joins MUST be exactly the same for AR to remove the duplicates. AR is not consistent in this approach, resulting in duplicate joins errors when combining scopes.