Ruby on Rails latest stable (v4.2.7) - 0 notes - Class: ActiveRecord::AssociationPreload::ClassMethods

Method deprecated or moved

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

construct_id_map(records, primary_key=nil) private

Given a collection of Active Record objects, constructs a Hash which maps the objects’ IDs to the relevant objects. Returns a 2-tuple (id_to_record_map, ids) where id_to_record_map is the Hash, and ids is an Array of record IDs.

Show source
Register or log in to add new notes.