Welcome to mirror list, hosted at ThFree Co, Russian Federation.

active_record_preloader.rb « initializers « config - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3b16014f30296e4c410e71b7bd61456df7212eb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module ActiveRecord
  module Associations
    class Preloader
      module NoCommitPreloader
        def preloader_for(reflection, owners, rhs_klass)
          return NullPreloader if rhs_klass == ::Commit

          super
        end
      end

      prepend NoCommitPreloader
    end
  end
end