method

new

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: Batch
new(preloaders, available_records:) 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/associations/preloader/batch.rb, line 7
        def initialize(preloaders, available_records))
          @preloaders = preloaders.reject(&:empty?)
          @available_records = available_records.flatten.group_by { |r| r.class.base_class }
        end
Register or log in to add new notes.