How to has_many :though a has_many :through
Have two models that you’d like to join that are separated by two relationships? In this article Tim Harper (that’s me - I’m a third person!) describes a clever trick to achieve just that using named_scope finders, without losing the ability to chain additional named scopes.
Post a comment