mongo_light 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mongo_light/document.rb +1 -2
- data/lib/mongo_light/version.rb +1 -1
- metadata +1 -1
data/lib/mongo_light/document.rb
CHANGED
@@ -30,8 +30,7 @@ module MongoLight
|
|
30
30
|
raw = options.delete(:raw) || false
|
31
31
|
options[:query] = map(options[:query]) if options[:query]
|
32
32
|
options[:update] = map(options[:update]) if options[:update]
|
33
|
-
options
|
34
|
-
options[:fields] = map_options(options[:fields]) if options[:fields]
|
33
|
+
options.merge(map_options(options))
|
35
34
|
c = collection || self.collection
|
36
35
|
found = c.find_and_modify(options)
|
37
36
|
return nil if found.nil?
|
data/lib/mongo_light/version.rb
CHANGED