class ActiveRecord::Associations::Preloader::Association

def owners_by_key

def owners_by_key
  @owners_by_key ||= owners.each_with_object({}) do |owner, result|
    key = convert_key(owner[owner_key_name])
    (result[key] ||= []) << owner if key
  end
end