Module: ConsoleThinkTwice::RelationGuard
- Defined in:
- lib/console_think_twice/relation_guard.rb
Instance Method Summary collapse
-
#delete_all(*args, force: false) ⇒ Object
CollectionProxy#delete_all takes an optional dependency strategy; Relation#delete_all takes none.
- #destroy_all(force: false) ⇒ Object
Instance Method Details
#delete_all(*args, force: false) ⇒ Object
CollectionProxy#delete_all takes an optional dependency strategy; Relation#delete_all takes none.
10 11 12 |
# File 'lib/console_think_twice/relation_guard.rb', line 10 def delete_all(*args, force: false) ConsoleThinkTwice.guard(self, action: :delete, force: force) { super(*args) } end |
#destroy_all(force: false) ⇒ Object
5 6 7 |
# File 'lib/console_think_twice/relation_guard.rb', line 5 def destroy_all(force: false) ConsoleThinkTwice.guard(self, action: :destroy, force: force) { super() } end |