1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix cookie serializer docs

The option actually needs to be set on action_dispatch. [ci skip]
This commit is contained in:
Carlos Antonio da Silva 2014-04-02 13:19:13 -03:00
parent 654dd04af6
commit 5aa4157ae4

View file

@ -104,9 +104,9 @@ Applications created before Rails 4.1 uses `Marshal` to serialize cookie values
the signed and encrypted cookie jars. If you want to use the new `JSON`-based format
in your application, you can add an initializer file with the following content:
```ruby
Rails.application.config.cookies_serializer = :hybrid
```
```ruby
Rails.application.config.action_dispatch.cookies_serializer = :hybrid
```
This would transparently migrate your existing `Marshal`-serialized cookies into the
new `JSON`-based format.