From 296ff04ee78dd28b6354275b68ef774bd5a9f289 Mon Sep 17 00:00:00 2001 From: Sergio Cambra Date: Fri, 25 Oct 2024 14:36:10 +0200 Subject: [PATCH] don't change columns on controller config, will affect other tests using the same controller --- test/misc/attribute_params_test.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/misc/attribute_params_test.rb b/test/misc/attribute_params_test.rb index 41915fce5..3091e0ed7 100644 --- a/test/misc/attribute_params_test.rb +++ b/test/misc/attribute_params_test.rb @@ -427,9 +427,8 @@ def update_record_from_params(record, action, *columns, &block) end def build_action_columns(record, action, *columns) - config = @controller.active_scaffold_config_for record.class - config.send(action).columns = columns - config.send(action).columns + config = @controller.active_scaffold_config_for(record.class) + config.build_action_columns(action, columns) end end