aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2016-07-28 10:36:50 -0300
committerGitHub <noreply@github.com>2016-07-28 10:36:50 -0300
commit519801db08a2eb0ea579ceed64f3be04a873acc9 (patch)
tree86d12ddfcc4fa6b2e2e7db245e7e6ebfdfc0ac75 /activerecord/lib/active_record/associations
parentfb30df9c10372b1667dabac2fffe2cff25302626 (diff)
parentceee776b5ddf3db849bdf170be15de5a86eb28d5 (diff)
downloadrails-519801db08a2eb0ea579ceed64f3be04a873acc9.tar.gz
rails-519801db08a2eb0ea579ceed64f3be04a873acc9.tar.bz2
rails-519801db08a2eb0ea579ceed64f3be04a873acc9.zip
Merge pull request #25940 from kamipo/fix_collection_proxy_load
Fix to `CollectionProxy#load` does `load_target`
Diffstat (limited to 'activerecord/lib/active_record/associations')
-rw-r--r--activerecord/lib/active_record/associations/collection_proxy.rb6
1 files changed, 6 insertions, 0 deletions
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