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_scope ⇒ Object
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 = reflection. return scope if [:disable_joins] super end |