diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-15 15:08:09 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-15 15:08:09 +0300 |
commit | 37439afe69efe58e2351d899d231670d945be5e2 (patch) | |
tree | 0bb4989879fcc18396c013741a3a21c7cc1cb637 /app/models/concerns | |
parent | 8353b844b31ebfa1181014e5a409ba93c22d8ad0 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/concerns')
-rw-r--r-- | app/models/concerns/cached_commit.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/concerns/cached_commit.rb b/app/models/concerns/cached_commit.rb index 183d5728743..0fb72552dd5 100644 --- a/app/models/concerns/cached_commit.rb +++ b/app/models/concerns/cached_commit.rb @@ -4,8 +4,8 @@ module CachedCommit extend ActiveSupport::Concern def to_hash - Gitlab::Git::Commit::SERIALIZE_KEYS.each_with_object({}) do |key, hash| - hash[key] = public_send(key) # rubocop:disable GitlabSecurity/PublicSend + Gitlab::Git::Commit::SERIALIZE_KEYS.index_with do |key| + public_send(key) # rubocop:disable GitlabSecurity/PublicSend end end |