class ActiveRecord::Relation::WhereClause

def merge(other)

def merge(other)
  predicates = except_predicates(other.extract_attributes)
  WhereClause.new(predicates | other.predicates)
end