Rails Scopes On Associations
I'm working on a legacy Rails application at the moment (legacy meaning it's over 10 years old - but it's recently had a revival in development activity.) I regularly come across, what appears to be, strange ways of doing things. At first I put