Method: Undeletable::ClassMethods#delete
- Defined in:
- lib/undeletable.rb
#delete(id_or_array) ⇒ Object
22 23 24 25 |
# File 'lib/undeletable.rb', line 22 def delete(id_or_array) raise ActiveRecord::ReadOnlyRecord.new("#{self} is undeletable") if raise_on_delete? logger.debug("will not #{self}.delete #{id_or_array.inspect}", e) if Undeletable.debug end |