method

preload_index

Importance_0
v7.1.3.4 - Show latest stable - 0 notes - Class: ThroughAssociation
preload_index() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/associations/preloader/through_association.rb, line 100
          def preload_index
            @preload_index ||= preloaded_records.each_with_object({}).with_index do |(record, result), index|
              result[record] = index
            end
          end
Register or log in to add new notes.