# File lib/mongoid/contexts/enumerable.rb, line 76 def destroy_all atomically(:$pull) do set_collection count.tap do filter.each { |doc| doc.destroy } end end end