Skip to content

Commit

Permalink
Update lib/datagrid/core.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Bohdan Zhuravel <[email protected]>
  • Loading branch information
bogdan and zhuravel authored Nov 15, 2024
1 parent 0f761ca commit ad56fe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/datagrid/core.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ad56fe6

Please sign in to comment.