Method: UndeletableRails4Extensions#destroy!

Defined in:
lib/undeletable.rb

#destroy!Object

Raises:

  • (ActiveRecord::RecordNotDestroyed)


49
50
51
# File 'lib/undeletable.rb', line 49

def destroy!
  raise ActiveRecord::RecordNotDestroyed.new("#{self} is undeletable")
end