Module: ActiveRecord::Associations::JoinHelper

Defined in:
lib/brick.rb

Instance Method Summary collapse

Instance Method Details

#_brick_construct_tablesObject



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

alias _brick_construct_tables construct_tables

#construct_tablesObject



1553
1554
1555
1556
1557
1558
1559
1560
1561
# File 'lib/brick.rb', line 1553

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