Adding a method to ActiveRecord.

Sam Donaldson
Mon, 02 Oct 2006 05:40:08 -0000

Hi, I''d like to add a generic function to all my models.  Basically a
function that will handle setting/unsetting flags in various models.  Is
there a way I could add this to ActiveRecord''s Base class and then use
it all throughout my models?  Where could I add this and how?

Thanks,

Sam

--
Posted via http://www.ruby-forum.com/.