Table builder allow column links to be customised
Created by: teddywing
Removes automatic link creation in the table builder helper. Previously, name and comment columns would always be linked to the #show page of the row object.
This change now requires the link to be defined at the TableBuilderHelper::Column level using a new link_to argument.
Example:
TableBuilderHelper::Column.new(
key: :comment,
attribute: 'comment',
link_to: lambda do |time_table|
referential_time_table_path(@referential, time_table)
end
)
This enables us to have multiple columns be links in tables, and to have those links point wherever we want, not just the #show of the row object.