From: Tom Clegg Date: Thu, 21 Sep 2023 20:37:05 +0000 (-0400) Subject: 20300: Turn off overrides of Rails 7.0 framework defaults. X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/322ff98d31140a365faa48e9dc78fc079c4b1ee9 20300: Turn off overrides of Rails 7.0 framework defaults. Arvados-DCO-1.1-Signed-off-by: Tom Clegg --- diff --git a/services/api/config/application.rb b/services/api/config/application.rb index ca5eff1a47..e91d681b5a 100644 --- a/services/api/config/application.rb +++ b/services/api/config/application.rb @@ -59,6 +59,14 @@ module Server # from connecting to Rails internally via plain http. config.ssl_options = {redirect: false} + # This will change to 7.0 in a future release when there is no + # longer a possibility of rolling back to Arvados 2.7 (Rails 5.2) + # which cannot read 7.0-format cache files. + config.active_support.cache_format_version = 6.1 + + # Delete when switching to 7.0 framework defaults. + config.active_support.disable_to_s_conversion = true + # Before using the filesystem backend for Rails.cache, check # whether we own the relevant directory. If we don't, using it is # likely to either fail or (if we're root) pollute it and cause diff --git a/services/api/config/initializers/new_framework_defaults_7_0.rb b/services/api/config/initializers/new_framework_defaults_7_0.rb index b13ef5ed16..fcba0035e1 100644 --- a/services/api/config/initializers/new_framework_defaults_7_0.rb +++ b/services/api/config/initializers/new_framework_defaults_7_0.rb @@ -11,10 +11,10 @@ # `button_to` view helper will render `