module ActionDispatch::Cookies::SerializedCookieJars

def serializer

def serializer
  serializer = request.cookies_serializer || :marshal
  case serializer
  when :marshal
    MarshalWithJsonFallback
  when :json, :hybrid
    JsonSerializer
  else
    serializer
  end
end