Method: Undeletable::ClassMethods#delete_all

Defined in:
lib/undeletable.rb

#delete_all(conditions = nil) ⇒ Object

Raises:

  • (ActiveRecord::ReadOnlyRecord)


27
28
29
30
# File 'lib/undeletable.rb', line 27

def delete_all(conditions = nil)
  raise ActiveRecord::ReadOnlyRecord.new("#{self} is undeletable") if raise_on_delete?
  logger.debug("will not #{self}.delete_all", e) if Undeletable.debug
end