RubyGems.org

paranoia

1.2.0

Paranoia is a re-implementation of acts_as_paranoid for Rails 3, 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.

installgem install paranoia
Authors

radarlistener@gmail.com

46,361 total downloads 9,561 for this version
Owners

9a2a53db8e9b4476038c94a64b32833f

Gemfile
gem "paranoia", "~> 1.2.0"
Versions
  1. 1.2.0 November 22, 2012
  2. 1.1.0 July 10, 2011
  3. 1.0.3 May 25, 2011
  4. 1.0.2 May 24, 2011
  5. 1.0.1 May 11, 2011
Show all versions (7 total)
Runtime Dependencies
  1. activerecord >= 3.0.0