Module: GuardAgainstPhysicalDelete::Relation::MethodOverrides
- Defined in:
- lib/guard_against_physical_delete/relation.rb
Instance Method Summary collapse
Instance Method Details
#delete_all ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/guard_against_physical_delete/relation.rb', line 8 def delete_all unless klass.delete_permitted? raise GuardAgainstPhysicalDelete::PhysicalDeleteError, klass.name end super end |