Sha256: 9a8c43632ad28edc82f5156b4233d500993ced6f6707e224853595c09923f3c8

Contents?: true

Size: 367 Bytes

Versions: 4

Compression:

Stored size: 367 Bytes

Contents

# encoding: utf-8
module Mongoid #:nodoc:
  module Commands
    class Delete
      extend Deletion
      # 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.destroyed = true if delete(doc)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
mongoid-pre-2.0.0.beta1 lib/mongoid/commands/delete.rb
mongoid-2.0.0.alpha lib/mongoid/commands/delete.rb
mongoid-1.2.14 lib/mongoid/commands/delete.rb
mongoid-1.2.13 lib/mongoid/commands/delete.rb