method

group_and_load_similar

Importance_0
v7.0.0 - Show latest stable - 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.