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

association_reflection.rb « reflection « partitioning « gitlab_patches « active_record « lib « activerecord-gitlab « gems - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 299ceaab973dd789e13c9ec4380825b0cd068c82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

module ActiveRecord
  module GitlabPatches
    module Partitioning
      module Reflection
        module AssociationReflection
          def check_eager_loadable!
            return if scope && scope.arity == 1 && options.key?(:partition_foreign_key)

            super
          end
        end
      end
    end
  end
end