This project is archived and is in readonly mode.
Changeset [1f38cd7ac751c5cc144bff67042fa3fbd4961392] by Aaron Patterson
March 30th, 2011 @ 11:39 PM
Merge branch 'eager_load_has_one_with_conditions_fix' of https://github.com/baconpat/rails into baconpat-eager_load_has_one_with_conditions_fix
- 'eager_load_has_one_with_conditions_fix' of https://github.com/baconpat/rails: Added back the use of the Reflection module's cached sanitized_conditions in an AssociationProxy. This was recently removed and when a has_one association with conditions is eager loaded the conditions would be sanitized once for every result row, causing a database hit to fetch the columns. https://github.com/rails/rails/commit/1f38cd7ac751c5cc144bff67042fa...
Committed by Aaron Patterson
- M activerecord/lib/active_record/associations/association_proxy.rb
- M activerecord/lib/active_record/base.rb
- M activerecord/test/cases/associations/eager_test.rb
- M activerecord/test/cases/helper.rb
- M activerecord/test/models/post.rb
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>