Skip to content

Commit

Permalink
We serialize fields using HashWithIndifferentAccess so need to whitel…
Browse files Browse the repository at this point in the history
…ist this class for the YAML coder.
  • Loading branch information
steveyken committed Oct 28, 2023
1 parent 0d834c8 commit fa6b938
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ class Application < Rails::Application
config.active_record.use_yaml_unsafe_load = false
config.active_record.yaml_column_permitted_classes = [
::ActiveRecord::Type::Time::Value,
::ActiveSupport::HashWithIndifferentAccess, # for Field#settings serialization see app/models/fields/field.rb
::ActiveSupport::TimeWithZone,
::ActiveSupport::TimeZone,
::BigDecimal,
Expand Down

0 comments on commit fa6b938

Please sign in to comment.