diff --git a/lib/mongo/types/objectid.rb b/lib/mongo/types/objectid.rb index 22894a5..9afd73e 100644 --- a/lib/mongo/types/objectid.rb +++ b/lib/mongo/types/objectid.rb @@ -86,7 +86,7 @@ module XGen end def eql?(other) - @data == other.to_a + @data == other.instance_variable_get("@data") end alias_method :==, :eql?