Module: ActiveRecord::Associations::JoinHelper

Defined in:
lib/brick.rb

Instance Method Summary collapse

Instance Method Details

#_brick_construct_tablesObject



1548
# File 'lib/brick.rb', line 1548

alias _brick_construct_tables construct_tables

#construct_tablesObject



1549
1550
1551
1552
1553
1554
1555
1556
1557
# File 'lib/brick.rb', line 1549

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