From 36d333de3594376cea91691d4cd3ee239c008eb5 Mon Sep 17 00:00:00 2001 From: Jim Menard Date: Thu, 22 Jan 2009 13:20:48 -0500 Subject: [PATCH] Avoid using to_a so we don't see warnings. --- lib/mongo/types/objectid.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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?