This project is archived and is in readonly mode.
Changeset [d6dbd54bec7cc63351a72826ef383f27a44c350d] by Patrick Bacon
March 30th, 2011 @ 11:42 PM
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/d6dbd54bec7cc63351a72826ef383...
Committed by Patrick Bacon
- 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>