class ActiveRecord::Associations::JoinDependency::Aliases::Table - activerecord-4.2.4 Documentation

# class ActiveRecord::Associations::JoinDependency::Aliases::Table

### Public Instance Methods

column_aliases() click to toggle source

    # File lib/active_record/associations/join_dependency.rb, line 40
    def column_aliases
      t = table
      columns.map { |column| t[column.name].as Arel.sql column.alias }
    end

table() click to toggle source

    # File lib/active_record/associations/join_dependency.rb, line 36
    def table
      Arel::Nodes::TableAlias.new node.table, node.aliased_table_name
    end