# File lib/active_record/relation.rb, line 346 def ==(other) case other when Relation other.to_sql == to_sql when Array to_a == other.to_a end end