lib/mongo_adapter/modifier.rb in dm-mongo-adapter-0.2.0.pre3 vs lib/mongo_adapter/modifier.rb in dm-mongo-adapter-0.6.0
- old
+ new
@@ -33,10 +33,10 @@
# TODO: document
# @api public
def unset(*args)
new_args = {}
-
+
args.each do |arg|
new_args[arg] = 1
end
modifier(:unset, new_args)