/archived_record

Use a quasi-magic archived_at timestamp to hide records. Like acts_as_paranoid, but you must be intentional in using it and records can still be destroyed.

Primary LanguageRubyMIT LicenseMIT

ArchivedRecord
==============

Set a record to be archived using the field archived_at (timestamp).

class MyModel < ActiveRecord::Base
  archived_record
end

MyModel.find # => will ignore archived records
MyModel.find(:first).archive! # => will mark a record as archived

Copyright (c) 2009 Todd Willey <todd@rubidine.com>, released under the MIT license