Skip to content

Commit 4b93f52

Browse files
committed
fix view
1 parent 3424ac0 commit 4b93f52

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/views/active_scaffold_overrides/edit_associated.js.erb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
columns = (@column.form_ui_options || @column.options)[:subform_columns]
33
columns = active_scaffold_config_for(@column.association.klass).subform.build_action_columns(columns) if columns
44
subform_id = sub_form_list_id(association: @column.name, tab_id: @tab_id, id: @parent_record.id || generated_id(@parent_record) || 99_999_999_999)
5-
render 'form_association_record', columns: columns, scope: @scope, parent_record: @parent_record,
6-
column: @column, record: @record, locked: @record.new_record? && @column.association.singular?
5+
associated_form = render 'form_association_record', columns: columns, scope: @scope, parent_record: @parent_record,
6+
column: @column, record: @record, locked: @record.new_record? && @column.association.singular?
77
options = {singular: false}
88
if @column.association.singular?
99
options[:singular] = true
@@ -12,4 +12,4 @@ elsif @record.persisted?
1212
options[:id] = active_scaffold_input_options(column, column_scope(@column, @scope, @record))[:id]
1313
end
1414
%>
15-
ActiveScaffold.create_associated_record_form('<%= subform_id %>', '<%=escape_javascript(associated_form)%>', <%= options.to_json.html_safe %>);
15+
ActiveScaffold.create_associated_record_form('<%= subform_id %>', '<%= escape_javascript(associated_form) %>', <%= options.to_json.html_safe %>);

0 commit comments

Comments
 (0)