method

id_to_index_map

rails latest stable - Class: ActiveRecord::Associations::Preloader::ThroughAssociation

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v5.1.7) is shown here.

id_to_index_map(ids)
private

No documentation available.

# File activerecord/lib/active_record/associations/preloader/through_association.rb, line 64
          def id_to_index_map(ids)
            id_map = {}
            ids.each_with_index { |id, index| id_map[id] = index }
            id_map
          end