method

target_records_from_association

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

Method deprecated or moved

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

target_records_from_association(association)
private

No documentation available.

# File activerecord/lib/active_record/associations/preloader/through_association.rb, line 109
          def target_records_from_association(association)
            association.loaded? ? association.target : association.reader
          end