Class: ActiveRecord::Associations::JoinDependency::Aliases::Table
- Inherits:
-
Struct
- Object
- Struct
- ActiveRecord::Associations::JoinDependency::Aliases::Table
- Defined in:
- lib/active_record/associations/join_dependency.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#columns ⇒ Object
Returns the value of attribute columns.
-
#node ⇒ Object
Returns the value of attribute node.
Instance Method Summary collapse
Instance Attribute Details
#columns ⇒ Object
Returns the value of attribute columns
37 38 39 |
# File 'lib/active_record/associations/join_dependency.rb', line 37 def columns @columns end |
#node ⇒ Object
Returns the value of attribute node
37 38 39 |
# File 'lib/active_record/associations/join_dependency.rb', line 37 def node @node end |
Instance Method Details
#column_aliases ⇒ Object
38 39 40 41 |
# File 'lib/active_record/associations/join_dependency.rb', line 38 def column_aliases t = node.table columns.map { |column| t[column.name].as Arel.sql column.alias } end |