# File lib/mongoid/persistence/operations/embedded/remove.rb, line 28 def persist prepare do |doc| parent.remove_child(doc) if notifying_parent? if parent.persisted? collection.update(parent.atomic_selector, deletes, options) end end end