method

group_and_load_similar

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: Batch
group_and_load_similar(loaders) private

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 40
          def group_and_load_similar(loaders)
            loaders.grep_v(ThroughAssociation).group_by(&:loader_query).each_pair do |query, similar_loaders|
              query.load_records_in_batch(similar_loaders)
            end
          end
Register or log in to add new notes.