From 10eb60700327237386a545a6b6d03d0ccbb5d172 Mon Sep 17 00:00:00 2001 From: meyric Date: Thu, 5 Dec 2024 14:28:43 +0000 Subject: [PATCH] Ignore new Rails 7.0 cookie config We already configure our cookie serializer to JSON in `config/initializers/cookies_serializer.rb` so we can ignore this. --- .../new_framework_defaults_7_0.rb | 26 ------------------- 1 file changed, 26 deletions(-) diff --git a/config/initializers/new_framework_defaults_7_0.rb b/config/initializers/new_framework_defaults_7_0.rb index dc2a47f9d..7840c55fd 100644 --- a/config/initializers/new_framework_defaults_7_0.rb +++ b/config/initializers/new_framework_defaults_7_0.rb @@ -88,32 +88,6 @@ # 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 -# is `:marshal`. The default for new apps is `:json`. -# -# Rails.application.config.action_dispatch.cookies_serializer = :json -# -# -# To migrate an existing application to the `:json` serializer, use the `:hybrid` option. -# -# Rails transparently deserializes existing (Marshal-serialized) cookies on read and -# re-writes them in the JSON format. -# -# It is fine to use `:hybrid` long term; you should do that until you're confident *all* your cookies -# have been converted to JSON. To keep using `:hybrid` long term, move this config to its own -# initializer or to `config/application.rb`. -# -# Rails.application.config.action_dispatch.cookies_serializer = :hybrid -# -# -# If your cookies can't yet be serialized to JSON, keep using `:marshal` for backward-compatibility. -# -# If you have configured the serializer elsewhere, you can remove this section of the file. -# -# See https://guides.rubyonrails.org/action_controller_overview.html#cookies for more information. - # 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