Skip to content

Commit

Permalink
fix mongoid bug: do not serialize cookies with json
Browse files Browse the repository at this point in the history
This is somewhat explained here:

heartcombo/devise#2949

but it is because how mongoid creates that $oid and devise doesn't
like it.

Signed-off-by: zeljko <zeljko@zwr.fi>
  • Loading branch information
zmilojko committed Feb 13, 2015
1 parent 97f7d21 commit 913a05a
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 = :json

0 comments on commit 913a05a

Please sign in to comment.