We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0bb5181 commit be6eaabCopy full SHA for be6eaab
README.md
@@ -348,6 +348,21 @@ end
348
# => NoMethodError: undefined method `with_deleted' for #<Class:0x0123456>
349
```
350
351
+#### delete_all:
352
+
353
+The gem supports `delete_all` method, however it is disabled by default, to enabled add this in your `environment` file
354
355
+``` ruby
356
+Paranoia.delete_all_enabled = true
357
+```
358
+alternatively, you can enable/disable it for specific models as follow:
359
360
361
+class User < ActiveRecord::Base
362
+ acts_as_paranoid(delete_all_enabled: true)
363
+end
364
365
366
## Acts As Paranoid Migration
367
368
You can replace the older `acts_as_paranoid` methods as follows:
0 commit comments