Sha256: edbe4bc1f0efd2100cd93c5597454926e868775e87f58cabff721cf41be5277d
Contents?: true
Size: 452 Bytes
Versions: 1
Compression:
Stored size: 452 Bytes
Contents
# frozen_string_literal: true module ActiveRecord module Associations class Preloader class HasManyThrough < CollectionAssociation #:nodoc: include ThroughAssociation def associated_records_by_owner(preloader) records_by_owner = super if reflection_scope.distinct_value records_by_owner.each_value(&:uniq!) end records_by_owner end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-on-quails-0.1.0 | activerecord/lib/active_record/associations/preloader/has_many_through.rb |