Module: UndeletableRails4Extensions
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/undeletable.rb
Instance Method Summary collapse
Instance Method Details
#destroy! ⇒ Object
49 50 51 |
# File 'lib/undeletable.rb', line 49 def destroy! raise ActiveRecord::RecordNotDestroyed.new("#{self} is undeletable") end |