method

load

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: DisableJoinsAssociationRelation
load() public

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/disable_joins_association_relation.rb, line 25
    def load
      super
      records = @records

      records_by_id = records.group_by do |record|
        record[key]
      end

      records = ids.flat_map { |id| records_by_id[id] }
      records.compact!

      @records = records
    end
Register or log in to add new notes.