method

associated_records_by_owner

Importance_0
v5.0.0.1 - Show latest stable - 0 notes - Class: Association
associated_records_by_owner(preloader) 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/association.rb, line 64
        def associated_records_by_owner(preloader)
          records = load_records
          owners.each_with_object({}) do |owner, result|
            result[owner] = records[convert_key(owner[owner_key_name])] || []
          end
        end
Register or log in to add new notes.