method
preload_index
v8.1.1 -
Show latest stable
- Class:
ActiveRecord::Associations::Preloader::ThroughAssociation
preload_index()private
No documentation available.
# File activerecord/lib/active_record/associations/preloader/through_association.rb, line 98
def preload_index
@preload_index ||= preloaded_records.each_with_object({}).with_index do |(record, result), index|
result[record] = index
end
end