minor: fix for assert_valid_keys

This commit is contained in:
Kyle Banker 2010-04-05 14:22:31 -04:00
parent 982d9a7765
commit cc253cc111
1 changed files with 1 additions and 1 deletions

View File

@ -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