From 18b97b3f854dfd978e8af8f4796e7ed1bcf3dc3f Mon Sep 17 00:00:00 2001 From: Bogdan Gusiev Date: Mon, 11 Nov 2024 11:51:12 +0100 Subject: [PATCH] Set form_with_generates_remote_forms to false as it is default value --- spec/datagrid/helper_spec.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spec/datagrid/helper_spec.rb b/spec/datagrid/helper_spec.rb index 47f70dc..a5c40b3 100644 --- a/spec/datagrid/helper_spec.rb +++ b/spec/datagrid/helper_spec.rb @@ -21,8 +21,9 @@ options.is_a?(String) ? options : ["/location", options.to_param.presence].compact.join("?") end - # Rails defaults since 6.x + # Rails defaults since 6.1 ActionView::Helpers::FormHelper.form_with_generates_ids = true + ActionView::Helpers::FormHelper.form_with_generates_remote_forms = false ActionView::Helpers::FormTagHelper.default_enforce_utf8 = false end @@ -533,7 +534,7 @@ class FormWithGrid < Datagrid::Base end object = FormWithGrid.new(category: "hello") expect(subject.datagrid_form_with(model: object, url: "/grid")).to equal_to_dom(<<~HTML) -
+