method

preload_index

Importance_0
v5.2.3 - 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 51
          def preload_index
            @preload_index ||= @preloaded_records.each_with_object({}).with_index do |(id, result), index|
              result[id] = index
            end
          end
Register or log in to add new notes.