Skip to content

Commit

Permalink
[TAN-3184] Update to Rails 7 cache format
Browse files Browse the repository at this point in the history
  • Loading branch information
adessy committed Dec 19, 2024
1 parent e73899c commit 6f7d3ab
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
1 change: 1 addition & 0 deletions back/config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class Application < Rails::Application

# TODO: Delete the following settings once we move to config.load_defaults 7.0
config.active_support.disable_to_s_conversion = true
config.active_support.cache_format_version = 7.0

# Configuration for the application, engines, and railties goes here.
#
Expand Down
14 changes: 0 additions & 14 deletions back/config/initializers/new_framework_defaults_7_0.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,6 @@
'Referrer-Policy' => 'strict-origin-when-cross-origin'
}

# ** Please read carefully, this must be configured in config/application.rb **
# Change the format of the cache entry.
# Changing this default means that all new cache entries added to the cache
# will have a different format that is not supported by Rails 6.1 applications.
# Only change this value after your application is fully deployed to Rails 7.0
# and you have no plans to rollback.
# When you're ready to change format, add this to `config/application.rb` (NOT this file):
# config.active_support.cache_format_version = 7.0

# Cookie serializer: 2 options
#
# If you're upgrading and haven't set `cookies_serializer` previously, your cookie serializer
Expand Down Expand Up @@ -123,8 +114,3 @@

# Change the return value of `ActionDispatch::Request#content_type` to the Content-Type header without modification.
Rails.application.config.action_dispatch.return_only_request_media_type_on_content_type = false

# ** Please read carefully, this must be configured in config/application.rb (NOT this file) **
# Disables the deprecated #to_s override in some Ruby core classes
# See https://guides.rubyonrails.org/configuring.html#config-active-support-disable-to-s-conversion for more information.
# config.active_support.disable_to_s_conversion = true

0 comments on commit 6f7d3ab

Please sign in to comment.