Skip to content

Commit a11ca2f

Browse files
committed
preloaded_records no longer includes nil since rails#35496
1 parent bbd8dd9 commit a11ca2f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

activerecord/lib/active_record/associations/preloader.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ def preloaders_for_reflection(reflection, records, scope)
150150
def grouped_records(association, records, polymorphic_parent)
151151
h = {}
152152
records.each do |record|
153-
next unless record
154153
reflection = record.class._reflect_on_association(association)
155154
next if polymorphic_parent && !reflection || !record.association(association).klass
156155
(h[reflection] ||= []) << record

0 commit comments

Comments
 (0)