123456789_123456789_123456789_123456789_123456789_

Class: ActiveRecord::Associations::JoinDependency::Aliases::Table

Do not use. This class is for internal use only.
Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, ::Struct
Instance Chain:
self, ::Struct
Inherits: Struct
  • ::Object
Defined in: activerecord/lib/active_record/associations/join_dependency.rb

Instance Attribute Summary

Instance Method Summary

Instance Attribute Details

#columns (rw)

[ GitHub ]

  
# File 'activerecord/lib/active_record/associations/join_dependency.rb', line 38

Table = Struct.new(:node, :columns)

#node (rw)

[ GitHub ]

  
# File 'activerecord/lib/active_record/associations/join_dependency.rb', line 38

Table = Struct.new(:node, :columns)

Instance Method Details

#column_aliases

[ GitHub ]

  
# File 'activerecord/lib/active_record/associations/join_dependency.rb', line 39

def column_aliases
  t = node.table
  columns.map { |column| t[column.name].as(column.alias) }
end