From c994c67f93a708e0eb9dab549a982384cda2397c Mon Sep 17 00:00:00 2001 From: Dushan Despotovic Date: Mon, 22 Aug 2022 15:04:55 +0100 Subject: [PATCH] lint fixes --- config/environments/production.rb | 2 +- config/environments/test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index 68a5ed46b..e51b9f9aa 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -128,7 +128,7 @@ Rails.application.configure do # in a proc. See guides for an example. # config.active_record.shard_selector = { lock: true } # config.active_record.shard_resolver = ->(request) { Tenant.find_by!(host: request.host).shard } - + # see 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 = [Time] end diff --git a/config/environments/test.rb b/config/environments/test.rb index 1a9dde49a..a3a798981 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -63,5 +63,5 @@ Rails.application.configure do Faker::Config.locale = "en-GB" # see 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 = [Time] + config.active_record.yaml_column_permitted_classes = [Time] end