This project is archived and is in readonly mode.
Changeset [d6dbd54bec7cc63351a72826ef383f27a44c350d] by Patrick Bacon
Revision d6dbd54bec7cc63351a72826ef383f27a44c350d,
committed 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...
5 changed files
-
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