RubyGems.org

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).

installgem install nested_has_many_through
Authors

Ian White

18,200 total downloads 17,283 for this version
Owners

7fb35d212dff4acaad349bbc24d18e3c

Gemfile
gem 'nested_has_many_through', '~> 0.0.2'
Versions
  1. 0.0.2 April 15, 2011 (17 KB)
  2. 0.0.1 April 13, 2011 (17 KB)
Runtime Dependencies
  1. rails >= 3.0.0