You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,8 @@ Breaking changes:
6
6
7
7
Features:
8
8
9
+
-[#2361](https://github.com/rails-api/active_model_serializers/pull/2361) Add `ActiveModelSerializers.config.use_sha1_digests` to allow customization of the hashing algorithm used for serializer caching (@alexzherdev)
10
+
9
11
Fixes:
10
12
11
13
-[#2344](https://github.com/rails-api/active_model_serializers/pull/2344) Fixes #2341 introduced since #2223 (@wasifhossain)
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.
113
113
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.
0 commit comments