search for: newactiverecord

Displaying 1 result from an estimated 1 matches for "newactiverecord".

2007 Oct 24
6
how to subclass active record to call a method on all save and destroy actions
I''m looking for a way to subclass active record (I''ll refer to the subclass I want to create as NewActiveRecord) so that I can call different methods on a save or destroy action on all models which sub class NewActiveRecord I dont want to use before_save or any of the other regular call back methods as I want to be able to use these call backs in the models which subclass NewActiveRecord without having to c...