Skip to content

Commit

Permalink
Set cookies_serializer to allow transparent upgrade to JSON
Browse files Browse the repository at this point in the history
This file is explicitly mentioned in the 4.0 -> 4.1 upgrade
and it says if you want to use the new JSON format to set
:hybrid here, to transparently migrate cookies; I'm not sure
if this file was just ignored before, and we weren't using
JSON, or what?

If I run the server without this change it crashes when I try
loading the site, and with this change it works.
  • Loading branch information
Throne3d committed May 24, 2017
1 parent 1862d2a commit 906de23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/cookies_serializer.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Be sure to restart your server when you modify this file.

Rails.application.config.action_dispatch.cookies_serializer = :json
Rails.application.config.action_dispatch.cookies_serializer = :hybrid

0 comments on commit 906de23

Please sign in to comment.