In fact, I think you need to actually set the value, not just call it as a method. From the [generated initializer for new apps](https://github.com/rails/rails/blob/master/railties/lib/rails/generators/rails/app/templates/config/initializers/cookies_serializer.rb):

```ruby
Rails.application.config.action_dispatch.cookies_serializer = :json
```