
Originally Posted by
33degrees
Except that in Ruby, class methods are NOT static calls, they are dynamic, so they're inherited by subclasses, and they can be mixed in from other modules. The coupling is in fact quite loose.
I don't know ruby, so I may be missing a point here, but is a class an object in ruby ? If not, how can you pass the class to a subroutine ?

Originally Posted by
33degrees
In any case, it's possible to have your cake and eat it, too. Ergo:
You lost me completely there ?
Edit:
Ah - I get it. You're suggesting to have a separate finder, but to let the activerecord serve as a decorator over it, so that user can decide which approach to use ?
That's a pretty good compromise actually.
Bookmarks