Method: MongoidExt::Paranoia#destroy!

Defined in:
lib/mongoid_ext/paranoia.rb

#destroy!Object

Delete the paranoid Document from the database completely. This will run the destroy callbacks.

Example:

document.destroy!



25
26
27
# File 'lib/mongoid_ext/paranoia.rb', line 25

def destroy!
  run_callbacks(:destroy) { delete! }
end