public
Description: rails plugin that allows has_many :through to go through other has_many :throughs
Homepage:
Clone URL: git://github.com/ianwhite/nested_has_many_through.git
Added branching BC code for AssociationReflection for 2.1-stable support
ianwhite (author)
Tue Oct 07 16:42:48 -0700 2008
commit  80c43d8cfb18c730b9985347a3abfe60bcb9b51e
tree    6fb7ccf8505702ec5594c0e5534bd95c351234d3
parent  f1da64b7ff13d2f5ecaf49181f8c1945ece67b97
...
1
2
3
4
5
 
 
 
 
 
 
 
6
...
1
2
3
 
4
5
6
7
8
9
10
11
12
0
@@ -1,4 +1,10 @@
0
 require 'nested_has_many_through'
0
 
0
 ActiveRecord::Associations::HasManyThroughAssociation.send :include, NestedHasManyThrough::Association
0
-ActiveRecord::Reflection::ThroughReflection.send :include, NestedHasManyThrough::Reflection
0
\ No newline at end of file
0
+
0
+# BC
0
+if defined?(ActiveRecord::Reflection::ThroughReflection)
0
+  ActiveRecord::Reflection::ThroughReflection.send :include, NestedHasManyThrough::Reflection
0
+else
0
+  ActiveRecord::Reflection::AssociationReflection.send :include, NestedHasManyThrough::Reflection
0
+end
0
\ No newline at end of file

Comments