daviscabral / destroy_restricted
- Source
- Commits
- Network (0)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | Fri Apr 18 11:57:38 -0700 2008 | |
| |
README.mkdn | Mon Mar 23 01:35:52 -0700 2009 | |
| |
Rakefile | Fri Apr 18 11:57:38 -0700 2008 | |
| |
init.rb | Fri Apr 18 11:57:38 -0700 2008 | |
| |
install.rb | Fri Apr 18 11:57:38 -0700 2008 | |
| |
lib/ | Mon Mar 23 01:35:52 -0700 2009 | |
| |
tasks/ | Fri Apr 18 11:57:38 -0700 2008 | |
| |
test/ | Fri Apr 18 11:57:38 -0700 2008 | |
| |
uninstall.rb | Fri Apr 18 11:57:38 -0700 2008 |
README.mkdn
DestroyRestricted
By default the rails allows only that the keys are defined with null or that the register be removed together. This plugin prevents that related records could be removed, when set.
That initial proposal was created by Daniel Gatis and Rafael Ribeiro da Silva and transformed into a plugin by Davis Zanetti Cabral.
Simple Example
class Category < ActiveRecord::Base
has_many :products, :dependent => :restrict
end
Copyright (c) 2008 Davis Zanetti Cabral, released under the MIT license
