Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Allow session serializer key in config.session_store #13692
MessageEncryptor has :serializer option, where any serializer object can be passed.
There are predefined serializers and custom serializer can be passed
This was suggested in #12881
I like @koz' suggestion.
On Tue, Jan 21, 2014 at 2:04 PM, Michael Koziarski <firstname.lastname@example.org
So maybe it would be better to enable both options. If symbol is passed, it will try to find it in
MessageEncryptor has :serializer option, where any serializer object can be passed. This commit make it possible to set this serializer from configuration level. There are predefined serializers (:marshal_serializer, :json_serialzier) and custom serializer can be passed as String, Symbol (camelized and constantized in ActionDispatch::Session namepspace) or serializer object. Default :json_serializer was also added to generators to provide secure defalt.