From aca663b24573d896591f79f5ce268a9be5890a43 Mon Sep 17 00:00:00 2001 From: Marion Duprey Date: Wed, 28 Oct 2015 11:18:27 +0100 Subject: [PATCH] fix rails compat on Hash --- lib/mongo/utils/core_ext.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mongo/utils/core_ext.rb b/lib/mongo/utils/core_ext.rb index 5d9c836c9b..f52e14f753 100644 --- a/lib/mongo/utils/core_ext.rb +++ b/lib/mongo/utils/core_ext.rb @@ -30,7 +30,7 @@ class Hash def assert_valid_keys(*valid_keys) unknown_keys = keys - [valid_keys].flatten raise(ArgumentError, "Unknown key(s): #{unknown_keys.join(", ")}") unless unknown_keys.empty? - end + end unless instance_methods.include?(:assert_valid_keys) end