From ceee776b5ddf3db849bdf170be15de5a86eb28d5 Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Mon, 25 Jul 2016 00:00:38 +0900 Subject: Fix to `CollectionProxy#load` does `load_target` --- activerecord/lib/active_record/associations/collection_proxy.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'activerecord/lib/active_record/associations') diff --git a/activerecord/lib/active_record/associations/collection_proxy.rb b/activerecord/lib/active_record/associations/collection_proxy.rb index db3037d8f9..98250a7ab8 100644 --- a/activerecord/lib/active_record/associations/collection_proxy.rb +++ b/activerecord/lib/active_record/associations/collection_proxy.rb @@ -1070,6 +1070,12 @@ module ActiveRecord proxy_association.reset_scope self end + + private + + def exec_queries + load_target + end end end end -- cgit v1.2.3