ianwhite / nested_has_many_through

rails plugin that allows has_many :through to go through other has_many :throughs

This URL has Read+Write access

eabb09cf » ianwhite 2008-04-28 Initial commit 1 require 'nested_has_many_through'
8f114e00 » ianwhite 2008-04-28 Initial refactoring 2
3 ActiveRecord::Associations::HasManyThroughAssociation.send :include, NestedHasManyThrough::Association
80c43d8c » ianwhite 2008-10-07 Added branching BC code for... 4
5 # BC
6 if defined?(ActiveRecord::Reflection::ThroughReflection)
7 ActiveRecord::Reflection::ThroughReflection.send :include, NestedHasManyThrough::Reflection
8 else
9 ActiveRecord::Reflection::AssociationReflection.send :include, NestedHasManyThrough::Reflection
10 end