Additional Model Validation


#1

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.
http://www.kopanas.com

=====================================================================
http://www.soen.info - source of the freshest software engineering
information on the net
http://cusec.soen.info - software engineering conference


#2

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