search for: sssociations

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

Did you mean: associations
2010 Oct 25
1
A few fixes to eager loading issues
Hey all, I''d really appreciate some eyes on https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/5845-activerecord-3-eager-loading-fail#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...