public
Description: Mark objects as destroyed instead of deleting them from the database for Ruby on Rails ActiveRecord
Homepage:
Clone URL: git://github.com/ryanlowe/acts_as_indestructible.git
100644 35 lines (26 sloc) 0.684 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
 
= make sure the GitHub gem works
= README: add installation instructions for gem
 
= support for :include_destroyed => true
 
= move \app directory to \test to avoid adding models to projects that include this plugin
= test models: need a namespace to avoid name collisions with models in projects that use this plugin
 
=== METHODS TO OVERRIDE
 
ActiveRecord::Base
  exists?
  find
  find_by_sql (maybe?)
 
ActiveRecord::Calculations::ClassMethods
  average
  calculate
  construct_count_options_from_args
  count
  maximum
  minimum
  sum
  
=== TECHNIQUES
 
Associations
  belongs_to
  has_one
  has_many
  has_many :through
  has_and_belongs_to_many
  
Named Scope (new in Rails 2.1)