Class: ActiveRecord::Associations::JoinDependency::Aliases::Table
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/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
Methods inherited from Struct
Instance Attribute Details
#columns ⇒ Object
Returns the value of attribute columns
38 39 40 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/associations/join_dependency.rb', line 38 def columns @columns end |
#node ⇒ Object
Returns the value of attribute node
38 39 40 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/associations/join_dependency.rb', line 38 def node @node end |
Instance Method Details
#column_aliases ⇒ Object
39 40 41 42 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/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 |