We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d707bf2 + aca663b commit 0cededfCopy full SHA for 0cededf
lib/mongo/utils/core_ext.rb
@@ -30,7 +30,7 @@ class Hash
30
def assert_valid_keys(*valid_keys)
31
unknown_keys = keys - [valid_keys].flatten
32
raise(ArgumentError, "Unknown key(s): #{unknown_keys.join(", ")}") unless unknown_keys.empty?
33
- end
+ end unless instance_methods.include?(:assert_valid_keys)
34
35
end
36
0 commit comments