Skip to content

Commit

Permalink
don't change columns on controller config, will affect other tests us…
Browse files Browse the repository at this point in the history
…ing the same controller
  • Loading branch information
scambra committed Oct 25, 2024
1 parent 736d0a1 commit 296ff04
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/misc/attribute_params_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 296ff04

Please sign in to comment.