lib/mongoid/persistence/operations/remove.rb in mongoid-3.0.0.rc vs lib/mongoid/persistence/operations/remove.rb in mongoid-3.0.0
- old
+ new
@@ -22,10 +22,10 @@
# Remove.persist
#
# @return [ true ] Always true.
def persist
prepare do |doc|
- collection.find({ _id: doc.id }).remove
+ collection.find(doc.atomic_selector).remove
end
end
end
end
end