Module: UndeletableRails4Extensions

Extended by:
ActiveSupport::Concern
Defined in:
lib/undeletable.rb

Instance Method Summary collapse

Instance Method Details

#destroy!Object

Raises:

  • (ActiveRecord::RecordNotDestroyed)


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

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