Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
10 lines (8 sloc) 401 Bytes
require 'nested_has_many_through'
ActiveRecord::Associations::HasManyThroughAssociation.send :include, NestedHasManyThrough::Association
# BC
if defined?(ActiveRecord::Reflection::ThroughReflection)
ActiveRecord::Reflection::ThroughReflection.send :include, NestedHasManyThrough::Reflection
else
ActiveRecord::Reflection::AssociationReflection.send :include, NestedHasManyThrough::Reflection
end