search for: join_parts

Displaying 1 result from an estimated 1 matches for "join_parts".

2010 Oct 25
1
A few fixes to eager loading issues
...l#ticket-5845-19. There''s a small issue in Rails 3 eager loading, and this ticket has an accompanying patch. Sssociations that show up twice in a Relation chain like: Article.includes(:comments).includes(:comments => :moderations) will show up twice in the JoinDependency''s join_parts but only once in the query that gets run. This wreaks all kinds of fun havoc with the select statement that gets used in construct_relation_for_association_find, since it will try to select from both copies of the table. One solution (the one I implemented in the patch) is to ensure that the JoinD...