class ActiveRecord::Relation::WhereClause

def ==(other)

def ==(other)
  other.is_a?(WhereClause) &&
    predicates == other.predicates
end