minor: fix for assert_valid_keys
This commit is contained in:
parent
982d9a7765
commit
cc253cc111
|
@ -31,7 +31,7 @@ class Hash
|
|||
#:nodoc:
|
||||
def assert_valid_keys(*valid_keys)
|
||||
unknown_keys = keys - [valid_keys].flatten
|
||||
raise(Mongo::MongoArgumentError, "Unknown key(s): #{unknown_keys.join(", ")}") unless unknown_keys.empty?
|
||||
raise(ArgumentError, "Unknown key(s): #{unknown_keys.join(", ")}") unless unknown_keys.empty?
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue