From 961776832d13b4cea7f67aface2c2882416ac975 Mon Sep 17 00:00:00 2001 From: Christophe Maximin Date: Fri, 5 Oct 2018 13:00:45 +0100 Subject: Clear QueryCache when reloading associations --- activerecord/lib/active_record/associations/collection_proxy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib/active_record/associations/collection_proxy.rb') diff --git a/activerecord/lib/active_record/associations/collection_proxy.rb b/activerecord/lib/active_record/associations/collection_proxy.rb index 9a30198b95..08b7c9274d 100644 --- a/activerecord/lib/active_record/associations/collection_proxy.rb +++ b/activerecord/lib/active_record/associations/collection_proxy.rb @@ -1088,7 +1088,7 @@ module ActiveRecord # person.pets.reload # fetches pets from the database # # => [#] def reload - proxy_association.reload + proxy_association.reload(true) reset_scope end -- cgit v1.2.3