method

target_reflection_scope

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.2.3) is shown here.

target_reflection_scope()
private

No documentation available.

# File activerecord/lib/active_record/associations/preloader/through_association.rb, line 95
          def target_reflection_scope
            if preload_scope
              reflection_scope.merge(preload_scope)
            elsif reflection.scope
              reflection_scope
            else
              nil
            end
          end