diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-09-23 12:09:51 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-09-23 12:09:51 +0300 |
commit | 66e4d1bf78b3ec2075135173b12767692ced242c (patch) | |
tree | 1ea67cbc46ee2c6b61e0872699a89f0fb600bef1 /app/models/preloaders | |
parent | 1d659e434d7c966a8a0c27fb17dc36d80ae70180 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/preloaders')
-rw-r--r-- | app/models/preloaders/merge_requests_preloader.rb | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/app/models/preloaders/merge_requests_preloader.rb b/app/models/preloaders/merge_requests_preloader.rb deleted file mode 100644 index cefe8408cab..00000000000 --- a/app/models/preloaders/merge_requests_preloader.rb +++ /dev/null @@ -1,19 +0,0 @@ -# frozen_string_literal: true - -module Preloaders - class MergeRequestsPreloader - attr_reader :merge_requests - - def initialize(merge_requests) - @merge_requests = merge_requests - end - - def execute - preloader = ActiveRecord::Associations::Preloader.new - preloader.preload(merge_requests, { target_project: [:project_feature] }) - merge_requests.each do |merge_request| - merge_request.lazy_upvotes_count - end - end - end -end |