Adapt to Rails 7.2 Serialization

This commit is contained in:
Henne Vogelsang 2025-08-12 17:24:30 +02:00
parent 3a2df26b91
commit 7948a5356e
No known key found for this signature in database
GPG key ID: 97DDB66BDAF8D4D6
3 changed files with 16 additions and 6 deletions

View file

@ -36,6 +36,6 @@ module Osem
# This is a nightmare with our current data model, no one ever thought about this.
config.active_record.belongs_to_required_by_default = false
# https://discuss.rubyonrails.org/t/cve-2022-32224-possible-rce-escalation-bug-with-serialized-columns-in-active-record/81017
config.active_record.yaml_column_permitted_classes = ['Date', 'DateTime', 'Symbol', 'Time', 'ActiveSupport::TimeWithZone', 'ActiveSupport::TimeZone']
config.active_record.yaml_column_permitted_classes = [Date, DateTime, Symbol, Time, ActiveSupport::TimeWithZone, ActiveSupport::TimeZone]
end
end