method

records_by_owner

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

Method deprecated or moved

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

records_by_owner()
public

No documentation available.

# File activerecord/lib/active_record/associations/preloader.rb, line 179
          def records_by_owner
            @records_by_owner ||= owners.index_with do |owner|
              Array(owner.association(reflection.name).target)
            end
          end