Module: Paranoid2::Persistence::ClassMethods
- Defined in:
- lib/paranoid2/persistence.rb
Instance Method Summary collapse
Instance Method Details
#destroy_all!(conditions = nil) ⇒ Object
77 78 79 80 81 |
# File 'lib/paranoid2/persistence.rb', line 77 def destroy_all!(conditions = nil) with_paranoid(force: true) do destroy_all(conditions) end end |
#paranoid? ⇒ Boolean
75 |
# File 'lib/paranoid2/persistence.rb', line 75 def paranoid? ; true ; end |
#restore_all ⇒ Object
83 84 85 |
# File 'lib/paranoid2/persistence.rb', line 83 def restore_all only_deleted.each &:restore end |