mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
3328cd1d69
If you have an application that has strict_loading set and then call `reload` that would cause the preload values to get lost and applications would start throwing a stict loading violation error. In order to fix this we capture the association cache and re-apply that to the reloaded records to avoid the strict loading error. Of course if you never preloaded your records, this will still raise a strict loading violation. This change also removes the `reload` definition from associations.rb because we can get the same behavior when we reassign the association cache. Co-authored-by: Aaron Patterson <tenderlove@ruby-lang.org> |
||
---|---|---|
.. | ||
active_record | ||
arel | ||
rails/generators | ||
active_record.rb | ||
arel.rb |