Let’s say i have a class with a lot of functionality, called Person. It
happens that men and women are treated differently within my app and i’m
sick of passing
:condition => ["gender = ? ", F]
all the time for cases dealing with women. Instead, i want to make two
new classes, Man and Woman, which inherit all the functionality of
Person but only some of the records, based on the above condition.
Can anyone tell me the syntax for this please? I know how to extend a
class but not to limit it in this way.