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