Method: DataMapper::Resource#destroy!

Defined in:
lib/dm-core/resource.rb

#destroy!Boolean

Destroy the instance, remove it from the repository, bypassing hooks

Returns:

  • (Boolean)

    true if resource was destroyed



445
446
447
448
449
# File 'lib/dm-core/resource.rb', line 445

def destroy!
  return true if destroyed?
  _destroy(false)
  destroyed?
end