aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2018-09-16 19:12:11 +0900
committerGitHub <noreply@github.com>2018-09-16 19:12:11 +0900
commit2df65b6fae6d5356ba783809a3c9a598f1539e3e (patch)
tree964f101258289ef39df15d8e9c5292e8ecab20b9 /activerecord/lib/active_record
parenta8c124ab8ced593462dc9347c2a1806b09c74f6f (diff)
parent9897f50ae77d5880bac292ac35873490669fc107 (diff)
downloadrails-2df65b6fae6d5356ba783809a3c9a598f1539e3e.tar.gz
rails-2df65b6fae6d5356ba783809a3c9a598f1539e3e.tar.bz2
rails-2df65b6fae6d5356ba783809a3c9a598f1539e3e.zip
Merge pull request #33895 from faucct/bugfix/preload_multiple_instances_of_same_record
ActiveRecord::Associations::Preloader should preload all instances of the same record
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/associations/preloader.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/preloader.rb b/activerecord/lib/active_record/associations/preloader.rb
index 5c2ac5b374..d4d1b2a282 100644
--- a/activerecord/lib/active_record/associations/preloader.rb
+++ b/activerecord/lib/active_record/associations/preloader.rb
@@ -88,7 +88,6 @@ module ActiveRecord
if records.empty?
[]
else
- records.uniq!
Array.wrap(associations).flat_map { |association|
preloaders_on association, records, preload_scope
}