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 Kopanas 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
on 2006-02-14 22:14
on 2006-02-14 22:17
Name the method "validate", or call it from a "before_save" and/or "before_update" method.