This patch removes limitation of depth for join levels.
Now we can enjoy eager loadings without any limitations!!
# cascaded in two levels
>> Author.find(:all, :include=>{:posts=>:comments})
=> authors
+- posts
+- comments
# cascaded in two levels and normal association
>> Author.find(:all, :include=>[{:posts=>:comments}, :categorizations])
=> authors
+- posts
+- comments
+- categorizations
# cascaded in two levels with two has_many associations
>> Author.find(:all, :include=>{:posts=>[:comments, :categorizations]})
=> authors
+- posts
+- comments
+- categorizations
# cascaded in three levels
>> Company.find(:all, :include=>{:groups=>{:members=>{:favorites}}})
=> companies
+- groups
+- members
+- favorites
Fortunately, a confliction for joining same tables was also
resolved. So we can use eager loading on acts_as_tree.
>> TreeMixin.find(:all, :include=>"children")
=> mixins
+- children
This means ticket #3836 is useless.
Best regards.