class ActiveRecord::Associations::AssociationScope

def get_chain(reflection, association, tracker)

Experimental RBS support (using type sampling data from the type_fusion project).

def get_chain: ((ActiveRecord::Reflection::HasOneReflection | ActiveRecord::Reflection::HasManyReflection) reflection, (ActiveRecord::Associations::HasOneAssociation | ActiveRecord::Associations::HasManyAssociation) association, ActiveRecord::Associations::AliasTracker tracker) -> untyped

This signature was generated using 2 samples from 1 application.

def get_chain(reflection, association, tracker)
  name = reflection.name
  chain = [Reflection::RuntimeReflection.new(reflection, association)]
  reflection.chain.drop(1).each do |refl|
    aliased_table = tracker.aliased_table_for(refl.klass.arel_table) do
      refl.alias_candidate(name)
    end
    chain << ReflectionProxy.new(refl, aliased_table)
  end
  chain
end