diff options
author | yguo <yguo@gitlab.com> | 2019-06-17 11:31:55 -0400 |
---|---|---|
committer | yguo <yguo@gitlab.com> | 2019-06-17 11:31:55 -0400 |
commit | 03d40ec845d83c9ecef6739c710137ff4183573b (patch) | |
tree | d6ed89848e227fad612c213acd9c766440599e0d /app/models/commit.rb | |
parent | 74db1abb6ce6b70d775e7b3d54f59ea431de9082 (diff) | |
parent | 08ed6b1720ff4d6e2b45a97000a106071d650194 (diff) | |
download | gitlab-ce-issue-62685.tar.gz |
Merge from masterissue-62685
Diffstat (limited to 'app/models/commit.rb')
-rw-r--r-- | app/models/commit.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb index fa0bf36ba49..be37fa2e76f 100644 --- a/app/models/commit.rb +++ b/app/models/commit.rb @@ -94,7 +94,7 @@ class Commit end def lazy(project, oid) - BatchLoader.for({ project: project, oid: oid }).batch do |items, loader| + BatchLoader.for({ project: project, oid: oid }).batch(replace_methods: false) do |items, loader| items_by_project = items.group_by { |i| i[:project] } items_by_project.each do |project, commit_ids| |