multiple layers nested has_many through

Aryk Grosz
Thu, 07 Jun 2007 19:53:42 -0000

I''ve seen previous posts finding ways to do multiple has_many :through
assocations like the following

class A < ActiveRecord::Base

   has_many :xs
   has_many :ys, :through=>:xs
   has_many :zs, :through=>:ys

end

I''ve seen a patch for this, however, I''m not doing edge rails,
and I
couldn''t copy over the code and actually get it working via a patch I
could put in my /lib directory.

Does anyone have some easy suggestions for getting my Rails 1.2 to
support this?

--
Posted via http://www.ruby-forum.com/.