Additional Model Validation


I created a method to do additional validation on my model. How can
I have that run whenever a model is being saved? (For now I don’t
want to extend AR.)

John K.

===================================================================== - source of the freshest software engineering
information on the net - software engineering conference


Name the method “validate”, or call it from a “before_save” and/or
“before_update” method.