X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/4419f1fcdbee8eb8b9c8da8825df7d307b124eed..1875ec0fead829272cc609f9d1431f4922633d49:/services/api/config/application.rb diff --git a/services/api/config/application.rb b/services/api/config/application.rb index be91e8673c..716383f203 100644 --- a/services/api/config/application.rb +++ b/services/api/config/application.rb @@ -16,6 +16,7 @@ require "action_mailer/railtie" # require "action_text/engine" require "action_view/railtie" # require "action_cable/engine" +require "sprockets/railtie" require "rails/test_unit/railtie" # Require the gems listed in Gemfile, including any gems @@ -32,7 +33,7 @@ module Server require_relative "arvados_config.rb" # Initialize configuration defaults for specified Rails version. - config.load_defaults 6.1 + config.load_defaults 7.0 # Configuration for the application, engines, and railties goes here. # @@ -58,6 +59,11 @@ 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 + # 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