search for: special_find

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

2005 Sep 11
3
Extending ActiveRecord::Base
...9;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.