BETAmodules.com is in beta — open to partnerships & joint ventures.Build with us

paranoia

v3.1.0RubyGems· Ruby

Paranoia is a re-implementation of acts_as_paranoid for Rails 5, 6, and 7, using much, much, much less code. You would use either plugin / gem if you wished that when you called destroy on an Active Record object that it didn't actually destroy it, but just "hid" the record. Paranoia does this by setting a deleted_at field to the current time when you destroy a record, and hides it by scoping all queries on your model to only include records which do not have a deleted_at field.

The verdict
Aging — last published 7 months ago — check before adopting. Check the repo for activity before adopting.
Check the repo for activity before adopting.
Live from the RubyGems registry · derived rules, not AI
How it scores
MaintenanceAging
PopularityRising
SecurityClean
LicensePermissive
DepsZero deps
Maintenance
Last published 7 months ago — check before adopting.
Popularity
85K downloads / week
Security
No known advisories for this version (OSV).
License
MIT
Dependencies
No runtime dependencies
Recent releases
  • 3.1.07 months ago
  • 3.0.1over a year ago
  • 3.0.0over a year ago
  • 2.6.4over a year ago
  • 2.6.32 years ago
  • 2.6.22 years ago
  • 2.6.13 years ago
  • 2.6.04 years ago
paranoia — Paranoia is a re-implementation of acts_as_paranoid for Rails 5, 6, and 7, using much, much, much less code. You would use either plugin / gem if you wished that when you called destroy on an Active Record object that it didn't actually destroy it, but just "hid" the record. Paranoia does this by setting a deleted_at field to the current time when you destroy a record, and hides it by scoping all queries on your model to only include records which do not have a deleted_at field. (Ruby / RubyGems) · Modules