David Genord II
2010-Jul-15 18:51 UTC
[PATCH] ActiveRecord count fails when run with multiple includes and a join
I would appreciate some eyes on a patch I created for an error that occurs when you run a count calculation with multiple includes and at least one join. JoinDependency#graft does not set the parent join to the base join when a suitable parent is not found in the join dependency which causes an error when looking up the association to include. The lighthouse ticket and patch can be found at https://rails.lighthouseapp.com/projects/8994/tickets/5124-patch-activerecord-count-fails-when-run-with-multiple-includes-and-a-join -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.