lib/mark_mapper/query.rb in mark_mapper-0.0.4 vs lib/mark_mapper/query.rb in mark_mapper-0.0.5
- old
+ new
@@ -179,13 +179,13 @@
alias_method :filter, :where
alias_method :to_a, :all
end
include DSL
- # def update(document, driver_opts={})
- # query = clone
- # query.collection.update(query.criteria_hash, document, driver_opts)
- # end
+ def update(document, driver_opts={})
+ query = clone
+ query.collection.update(query.criteria_hash, document, driver_opts)
+ end
def amend(opts={})
opts.each { |key, value| self[key] = value }
self
end