method

table_aliases_for

rails latest stable - Class: ActiveRecord::Associations::JoinDependency

Method deprecated or moved

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

table_aliases_for(parent, node)
private

No documentation available.

# File activerecord/lib/active_record/associations/join_dependency.rb, line 162
        def table_aliases_for(parent, node)
          node.reflection.chain.map { |reflection|
            alias_tracker.aliased_table_for(
              reflection.table_name,
              table_alias_for(reflection, parent, reflection != node.reflection),
              reflection.klass.type_caster
            )
          }
        end