From 628eff258276d8913a8ea239771c7510f27f3447 Mon Sep 17 00:00:00 2001 From: Alex Zherdev Date: Thu, 17 Oct 2019 11:07:37 -0700 Subject: [PATCH] Update configuration options doc --- docs/general/configuration_options.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/general/configuration_options.md b/docs/general/configuration_options.md index a07d71ee8..0f9b2aaee 100644 --- a/docs/general/configuration_options.md +++ b/docs/general/configuration_options.md @@ -111,6 +111,18 @@ ActiveModelSerializers.config.serializer_lookup_chain.unshift( See [lookup_chain.rb](https://github.com/rails-api/active_model_serializers/blob/master/lib/active_model_serializers/lookup_chain.rb) for further explanations and examples. +#### use_sha1_digests + +Determines which hashing algorithm to use internally when caching serializers. + +Possible values: + +- `true` +- `false` (default) + +When `true`, ActiveModelSerializers will use SHA1. Otherwise, it will default to using MD5. +Be warned that changing this value may result in serializer caches being invalidated. + ## JSON API ##### jsonapi_resource_type