Skip to content

Commit

Permalink
Fix cookie serializer docs
Browse files Browse the repository at this point in the history
The option actually needs to be set on action_dispatch. [ci skip]

Conflicts:
	guides/source/upgrading_ruby_on_rails.md
  • Loading branch information
carlosantoniodasilva committed Apr 2, 2014
1 parent 443d3f3 commit c13169d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions guides/source/upgrading_ruby_on_rails.md
Expand Up @@ -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 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: in your application, you can add an initializer file with the following content:


```ruby ```ruby
Rails.application.config.cookies_serializer :hybrid Rails.application.config.action_dispatch.cookies_serializer = :hybrid
``` ```


This would transparently migrate your existing `Marshal`-serialized cookies into the This would transparently migrate your existing `Marshal`-serialized cookies into the
new `JSON`-based format. new `JSON`-based format.
Expand Down

0 comments on commit c13169d

Please sign in to comment.