Sha256: 14ead9de034756d5f616db125a494fe333194e517f090af415e99bd94ff6758c
Contents?: true
Size: 347 Bytes
Versions: 13
Compression:
Stored size: 347 Bytes
Contents
# encoding: utf-8 module Mongoid #:nodoc: module Commands class Delete # Performs a delete of the supplied +Document+ without any callbacks. # # Options: # # doc: A new +Document+ that is going to be deleted. def self.execute(doc) doc.collection.remove(:_id => doc.id) end end end end
Version data entries
13 entries across 13 versions & 1 rubygems