diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-02 18:07:40 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-02 18:07:40 +0300 |
commit | d83c512077b9eb391ce1f59349fc7bacc3615e18 (patch) | |
tree | 1864abd445bddfe750358b054d43b52a13675e17 /lib/banzai | |
parent | a72a9af092c1bfcf9f8024d59c11cf222f07e1e7 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/banzai')
-rw-r--r-- | lib/banzai/reference_parser/base_parser.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/banzai/reference_parser/base_parser.rb b/lib/banzai/reference_parser/base_parser.rb index 8419769085a..9160c0e14cf 100644 --- a/lib/banzai/reference_parser/base_parser.rb +++ b/lib/banzai/reference_parser/base_parser.rb @@ -177,7 +177,7 @@ module Banzai collection.where(id: to_query).each { |row| cache[row.id] = row } end - cache.values_at(*ids).compact + ids.uniq.map { |id| cache[id] }.compact else collection.where(id: ids) end |