Skip to content

Commit 628eff2

Browse files
author
Alex Zherdev
committed
Update configuration options doc
1 parent 7e1c9fc commit 628eff2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/general/configuration_options.md

+12
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,18 @@ ActiveModelSerializers.config.serializer_lookup_chain.unshift(
111111

112112
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.
113113

114+
#### use_sha1_digests
115+
116+
Determines which hashing algorithm to use internally when caching serializers.
117+
118+
Possible values:
119+
120+
- `true`
121+
- `false` (default)
122+
123+
When `true`, ActiveModelSerializers will use SHA1. Otherwise, it will default to using MD5.
124+
Be warned that changing this value may result in serializer caches being invalidated.
125+
114126
## JSON API
115127

116128
##### jsonapi_resource_type

0 commit comments

Comments
 (0)