search for: extendedar

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

Did you mean: extended
2005 Sep 11
3
Extending ActiveRecord::Base
Hey everyone, I''m interested in extending ActiveRecord::Base. I have a special "easier" find function that I want to include in all classes. How can I include this in all classes? Can I just create a model object that does something like this: class ExtendedAR < ActiveRecord::Base def self.special_find ... end end and then all my other classes inherit from this class? That way, they inherit the functionality? Thanks in advance, as always, Julian.