diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-30 00:08:27 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-30 00:08:27 +0300 |
commit | 836ddfc35d1778675b3bd6d51f51972f36a96bbe (patch) | |
tree | bc1c0247c76a2cbdbab94b3884bc040b179f41fe /lib/gitlab/json_cache.rb | |
parent | 488e1b59feb4314b034636990bcc4e220e61f0ce (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/json_cache.rb')
-rw-r--r-- | lib/gitlab/json_cache.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/gitlab/json_cache.rb b/lib/gitlab/json_cache.rb index d5c018cfc68..d2916a01809 100644 --- a/lib/gitlab/json_cache.rb +++ b/lib/gitlab/json_cache.rb @@ -43,9 +43,7 @@ module Gitlab end def write(key, value, options = nil) - # As we use json as the serialization format, return everything from - # ActiveModel objects included encrypted values. - backend.write(cache_key(key), value.to_json(unsafe_serialization_hash: true), options) + backend.write(cache_key(key), value.to_json, options) end def fetch(key, options = {}, &block) |