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:
parent
0bc04cb003
commit
9957929a15
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue