DEV: Use hybrid cookies instead of marshal ones

Now that we’re sure about not reverting from Rails 7, we can enable the
hybrid cookie serializer to convert our cookies automatically.
This commit is contained in:
Loïc Guitaut 2022-05-12 10:44:11 +02:00 committed by Loïc Guitaut
parent 0bc04cb003
commit 9957929a15
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ Rails.application.config.action_controller.raise_on_open_redirects = true
# If you have configured the serializer elsewhere, you can remove this. # If you have configured the serializer elsewhere, you can remove this.
# #
# See https://guides.rubyonrails.org/action_controller_overview.html#cookies for more information. # See https://guides.rubyonrails.org/action_controller_overview.html#cookies for more information.
Rails.application.config.action_dispatch.cookies_serializer = :marshal Rails.application.config.action_dispatch.cookies_serializer = :hybrid
# Enable parameter wrapping for JSON. # Enable parameter wrapping for JSON.
# Previously this was set in an initializer. It's fine to keep using that initializer if you've customized it. # Previously this was set in an initializer. It's fine to keep using that initializer if you've customized it.