Module: ActiveRecord::Associations::JoinHelper
- Defined in:
- lib/brick.rb
Instance Method Summary collapse
Instance Method Details
#_brick_construct_tables ⇒ Object
1566 |
# File 'lib/brick.rb', line 1566 alias _brick_construct_tables construct_tables |
#construct_tables ⇒ Object
1567 1568 1569 1570 1571 1572 1573 1574 1575 |
# File 'lib/brick.rb', line 1567 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 |