mongo 0.19.2 → 0.19.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mongo.rb +1 -1
- data/lib/mongo/util/core_ext.rb +1 -1
- metadata +2 -2
data/lib/mongo.rb
CHANGED
data/lib/mongo/util/core_ext.rb
CHANGED
@@ -31,7 +31,7 @@ class Hash
|
|
31
31
|
#:nodoc:
|
32
32
|
def assert_valid_keys(*valid_keys)
|
33
33
|
unknown_keys = keys - [valid_keys].flatten
|
34
|
-
raise(
|
34
|
+
raise(ArgumentError, "Unknown key(s): #{unknown_keys.join(", ")}") unless unknown_keys.empty?
|
35
35
|
end
|
36
36
|
|
37
37
|
end
|