scambra / active_scaffold_dependent_protect

ActiveScaffold Bridge for dependent protect. Forbid destroy action when an association with dependent protect is not empty

This URL has Read+Write access

scambra (author)
Thu Jul 02 03:54:22 -0700 2009
commit  30555e8c408089434fbeca0764e82482ccf8ce64
tree    1e72281bd3cb87f8987980fb7f71b6946b1d79df
parent  996b60e76408ddd7d723a8d146ba7b8d90d90154
name age message
file README.markdown Loading commit data...
file Rakefile
file init.rb
directory lib/
directory locales/
directory test/
README.markdown

Adds an authorized_for_destroy? method which check all associations to forbid destroy action when an association with dependent protect is not empty.

Instalation

script/plugin install git://github.com/scambra/active_scaffold_dependent_protect.git

ActiveScaffold loads the bridge if you have installed the dependent_protect plugin: http://github.com/scambra/dependent_protect