nested_has_many_through

obrie made the original ticket and Matt Westcott released the first version
of the plugin, under the MIT license. Many others have contributed, see
the trac ticket for details.

Here is a refactored version (I didn't write the original), suitable
for edge/2.0-stable with a bunch of acceptance specs. I'm
concentrating on plugin usage, once it becomes stable, and well enough
speced/understood, then it's time to pester rails-core.

Why republish this on github?

The previous implementations are very poorly speced/tested, so it's
pretty hard to refactor and understand this complicated bit of sql-fu,
especially when you're aiming at a moving target (edge)

the lastest patches don't apply on edge

github - let's collab to make this better and get a patch accepted,
fork away!

Help out

I'm releasing 'early and often' in the hope that people will
use it and find bugs/problems. Report them at ianwhite.lighthouseapp.com, or
fork and pull request, yada yada.

History

Here's the original description:

This plugin makes it possible to define has_many :through relationships that
go through other has_many :through relationships, possibly through an
arbitrarily deep hierarchy. This allows associations across any number of
tables to be constructed, without having to resort to find_by_sql (which isn't
a suitable solution if you need to do eager loading through :include as well).