Skip to content
  • Lukasz Sarnacki's avatar
    b23ffd0d
    Allow session serializer key in config.session_store · b23ffd0d
    Lukasz Sarnacki authored
    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.
    b23ffd0d
    Allow session serializer key in config.session_store
    Lukasz Sarnacki authored
    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.
Loading