Skip to content

Commit

Permalink
fix usage of prefixed active_scaffold_tab_options when adding a tab
Browse files Browse the repository at this point in the history
  • Loading branch information
scambra committed Oct 22, 2024
1 parent fbf4c9d commit 672ecca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/active_scaffold_overrides/add_tab.js.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<%
subsection_id = sub_section_id(:sub_section => @column.label)
tab_options = active_scaffold_tab_options(@column, @record)
tab_options = send(override_helper_per_model(:active_scaffold_tab_options, @record.class), @column, @record)
tab_label, tab_value, tab_record = tab_options.find { |_, value, _| params[:value] == value.to_s }
if tab_label
tab_id_suffix = clean_id(tab_record&.id&.to_s || tab_value.to_s)
Expand Down

0 comments on commit 672ecca

Please sign in to comment.