1 project tagged "rails-3"

No download No website Updated 09 Feb 2011 protective

Screenshot
Pop 12.73
Vit 34.72

protective protects active records from being destroyed in a declarative way: < protect_if :attachments, "Record has attachments and cannot be destroyed" > . Of course, you may pass the name of any defined method. If its result evaluates to present?, the record is not going to be destroyed. No exception is thrown, but a message is added to the errors object of your model. This may then be used further on.

Screenshot

Project Spotlight

twyg

A generative tree visualiser for Python.

Screenshot

Project Spotlight

Webmin

A Web-based interface for Unix system administration.