Deactivatable provides methods and a default_scope to allow ActiveRecord objects to be deactivated instead of deleted. This is useful if an object needs to be removed from general use, but it's data needs to be retained. Additionally, Deactivatable provides the ability to specify dependencies which also need to be deactivated. Deactivation is determined by populating a deactivated_at field with the date time at which deactivation happened.

Required Ruby Version

None

Authors

Greg Fitzgerald

Versions

  1. 0.1.1
    1. source

      1. 0.1.1 source March 30, 2010 (8 KB)
  2. 0.1.0
    1. source

      1. 0.1.0 source March 22, 2010 (8 KB)
  3. 0.0.3
    1. source

      1. 0.0.3 source November 12, 2009 (8 KB)
  4. 0.0.2
    1. source

      1. 0.0.2 source November 10, 2009 (8 KB)
  5. 0.0.1
    1. source

      1. 0.0.1 source November 06, 2009 (7 KB)

SHA 256 checksum