From ad56fe61af11e2716ce440e5344368a4620b4228 Mon Sep 17 00:00:00 2001 From: Bogdan Gusiev Date: Fri, 15 Nov 2024 20:46:15 +0100 Subject: [PATCH] Update lib/datagrid/core.rb Co-authored-by: Bohdan Zhuravel --- lib/datagrid/core.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/datagrid/core.rb b/lib/datagrid/core.rb index 8bc04d8..ddc450c 100644 --- a/lib/datagrid/core.rb +++ b/lib/datagrid/core.rb @@ -273,7 +273,7 @@ def sanitize_for_mass_assignment(attributes) if forbidden_attributes_protection super elsif defined?(ActionController::Parameters) && attributes.is_a?(ActionController::Parameters) - attributes.permit!.to_h + attributes.to_unsafe_h else attributes end