diff --git a/lib/squeel/adapters/active_record/relation_extensions.rb b/lib/squeel/adapters/active_record/relation_extensions.rb index b11828b..c305147 100644 --- a/lib/squeel/adapters/active_record/relation_extensions.rb +++ b/lib/squeel/adapters/active_record/relation_extensions.rb @@ -266,6 +266,7 @@ def build_where(opts, other = []) end end +=begin def collapse_wheres(arel, wheres) wheres = Array(wheres) binaries = wheres.grep(Arel::Nodes::Binary) @@ -279,6 +280,7 @@ def collapse_wheres(arel, wheres) arel.where(Arel::Nodes::And.new(groups)) if groups.any? end +=end def find_equality_predicates(nodes, relation_table_name = table_name) nodes.map { |node|