From 0d6931891ef5b2f7f2663587e0be9053d6ba192b Mon Sep 17 00:00:00 2001 From: Mohamed ABDELLANI Date: Tue, 26 Dec 2023 16:00:36 +0100 Subject: [PATCH] add :Time to yaml_column_permitted_classes To solve the following error ```ruby Failure/Error: expect(oc.versions.last.reify.name).to eq "Original" Psych::DisallowedClass: Tried to load unspecified class: Time ``` --- config/application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/application.rb b/config/application.rb index a8a3423b53e3..b7d6625f2cd7 100644 --- a/config/application.rb +++ b/config/application.rb @@ -227,7 +227,7 @@ module ::Reporting; end config.action_view.form_with_generates_remote_forms = false config.active_record.cache_versioning = false config.active_record.has_many_inversing = false - config.active_record.yaml_column_permitted_classes = [BigDecimal, Symbol, ActiveSupport::SafeBuffer] + config.active_record.yaml_column_permitted_classes = [BigDecimal, Symbol, ActiveSupport::SafeBuffer, Time] config.active_support.escape_html_entities_in_json = true