Method: MongoidExt::Paranoia#remove

Defined in:
lib/mongoid_ext/paranoia.rb

#remove(options = {}) ⇒ Object Also known as: delete

Delete the Document, will set the deleted_at timestamp and not actually delete it.

Example:

document.remove

Returns:

true



48
49
50
51
52
# File 'lib/mongoid_ext/paranoia.rb', line 48

def remove(options = {})
  self.class.paranoia_klass.create(:document => self.raw_attributes)

  super
end