Module: GemExtensions::ActiveRecord::Associations::Preloader::ThroughAssociation

Extended by:
ActiveSupport::Concern
Defined in:
lib/gem_extensions/active_record/associations/preloader/through_association.rb

Instance Method Summary collapse

Instance Method Details

#through_scopeObject



10
11
12
13
14
15
16
17
# File 'lib/gem_extensions/active_record/associations/preloader/through_association.rb', line 10

def through_scope
  scope = through_reflection.klass.unscoped
  options = reflection.options

  return scope if options[:disable_joins]

  super
end