Module: ActiveRecord::Associations::JoinHelper
- Defined in:
- lib/brick.rb
Instance Method Summary collapse
Instance Method Details
#_brick_construct_tables ⇒ Object
1554 |
# File 'lib/brick.rb', line 1554 alias _brick_construct_tables construct_tables |
#construct_tables ⇒ Object
1555 1556 1557 1558 1559 1560 1561 1562 1563 |
# File 'lib/brick.rb', line 1555 def construct_tables result = _brick_construct_tables # Capture the table alias name that was chosen # if (relation = node.instance_variable_get(:@assocs)&.instance_variable_get(:@relation)) # link_path = node.instance_variable_get(:@link_path) # relation.brick_links(false)[link_path] = result.first.table_alias || result.first.table_name # end result end |