method

preload_hash

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

Method deprecated or moved

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

preload_hash(association)
private

No documentation available.

# File activerecord/lib/active_record/associations/preloader.rb, line 112
      def preload_hash(association)
        association.each do |parent, child|
          Preloader.new(records, parent, preload_scope).run
          Preloader.new(records.map { |record| record.send(parent) }.flatten, child).run
        end
      end