RubyGems.org

paranoia

2.0.2

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

546,824 total downloads 186,326 for this version
Owners

9a2a53db8e9b4476038c94a64b32833f

Gemfile
gem 'paranoia', '~> 2.0.2'
Versions
  1. 2.0.2 January 16, 2014 (10.5 KB)
  2. 2.0.1 October 24, 2013 (8.5 KB)
  3. 2.0.0 July 8, 2013 (8 KB)
  4. 1.3.3 January 16, 2014 (10.5 KB)
  5. 1.3.2 October 24, 2013 (9 KB)
Show all versions (14 total)
Runtime Dependencies
  1. activerecord ~> 4.0
Development Dependencies
  1. bundler >= 1.0.0
  2. rake >= 0