Extending Rails Associations with Custom Features Discussion
Great video! I see the point in the first example where just the User needs to know about the client projects, but if you're creating a module and extending it through different classes, why not just add it in the Project class as a scope method? Anyway, is good to know different forms you have to get similar behavior.
You may not want / need that to be accessible by everyone, in which case you don't want to add it to the ActiveRecord class, just the association.
What a superb video! I get it in the first case, where the only person who needs to know about client projects is the user, but why not simply add the function to the Project class as a scope method when you're making a module and extending it through other classes? Knowing the many forms you need to acquire identical behavior is, in any case, beneficial.