Skip to content
CAI
Software that uses CAICheck a score

ActsAsParanoid/acts_as_paranoid

64.6

Adequate · 6 November 2026

456

lines of production code

Ruby

primary language

4

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Initial release of acts\_as\_paranoid gem

This change introduces the core library for the acts\_as\_paranoid gem, enabling soft-delete functionality for ActiveRecord models. Users can now call \acts\_as\_paranoid\ on their models to mark records as deleted via a \deleted\_at\ column (supporting time, boolean, or string types) rather than permanently removing them. The gem provides a default scope to hide deleted records, supports recovering associated records within a configurable window, and allows for double-tap destruction. It also integrates with ActiveRecord's relation and association reflection systems to ensure queries and associations respect the paranoid state.

lib · high confidence

Behavioural changes

ActsAsParanoid 0.11.0: Refined soft-delete logic and :with\_deleted association support

This release restructures the gem into modular files (core, associations, validations, etc.) and introduces a :with\_deleted option for belongs\_to associations, allowing them to include soft-deleted records while preserving automatic inverse association detection. It adds a recover! method with before\_recover/after\_recover callbacks, a double\_tap\_destroys\_fly option to hard-delete on a second destroy call, and a validates\_uniqueness\_of\_without\_deleted validator. The default scope logic is refined to handle string, boolean, and nullable column types correctly, and destroy! now raises ActiveRecord::RecordNotDestroyed on failure.

_lib/acts\_as\paranoid · high confidence

Dropped support for older Ruby and Rails versions

The gem now requires Ruby 3.1+ and targets Rails 6.1+ only, dropping support for Ruby 2.4–3.0 and Rails versions prior to 6.1. This is enforced by the updated \TargetRubyVersion\ in \.rubocop.yml\ and the \Appraisals\ file which now only includes test configurations for ActiveRecord 7.2, 8.0, and 8.1.

(repo-wide) · high confidence

Test coverage

Added integration tests for paranoid has\_many :through associations; Added legacy test suite for paranoid model behaviors; Establishes centralized test infrastructure and coverage.

Dependencies

Add Appraisal gemfiles for Rails 7.2, 8.0, and 8.1

The gemfiles directory now includes new Appraisal configurations for testing against Rails 7.2.0, 8.0.0, and 8.1.0. These files define the specific versions of activerecord and activesupport required for each target, along with development dependencies like minitest, rubocop, and sqlite3, enabling the library to be tested against these newer Rails versions.

gemfiles · high confidence

Update ActiveRecord dependency to support versions 7.2 through 8.1

The gem now requires ActiveRecord and ActiveSupport versions 7.2 or higher (up to, but not including, 8.2), dropping support for older Rails versions. This change aligns the library with modern Rails releases and ensures compatibility with the latest Active Record features.

(dependencies) · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 65 → 65 (-0.1)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.

Lenses

  • Code Health 75 → 75 (+0.0)
  • Architecture 69 → 69 (+0.0)
  • Maturity 54 → 54 (+0.0)
  • Readiness 75 → 75 (+0.0)
  • Security 97 → 95 (-2.1)

Resolved (1)

  • Redundant method naming with unclear distinction. Both methods accept identical arguments and likely perform the same core operation (deleting records). The '!' suffix conventionally implies a more dangerous or irreversible action, but without documentation, it is unclear if delete_all! differs from delete_all in scope, safety, or behavior. This creates confusion for API users.

Changes since last survey

  • 4 commits — 4 feature/other, 0 fixes

By area

  • (root) — 2 commits
  • (repo) — 1 commit
  • .github/workflows — 1 commit

Notable commits

  • change: Check that appraisals are up-to-date in CI
  • change: Merge pull request #397 from ActsAsParanoid/update-appraisals
  • change: Regenerate appraisals
  • change: Use rake-appraisal to check for outdated appraisals

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

ActsAsParanoid/acts_as_paranoid was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 6 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 58a3a7cb23e8c824cb0cfd0de26d18ac9da2c9a8 — the exact code this score is about.
  • Scored under rubric-2026.11.2 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.2+preprod-5c4e66d9318b.