Module: Miscellany::ArbitraryPrefetch::ActiveRecordPatches::Reflection::ThroughReflectionPatch

Defined in:
lib/miscellany/active_record/arbitrary_prefetch.rb

Instance Method Summary collapse

Instance Method Details

#check_validity!Object



193
194
195
196
# File 'lib/miscellany/active_record/arbitrary_prefetch.rb', line 193

def check_validity!
  return if options[:arbitrary_source_reflection] # Rails already checked the base relation, we're good
  super
end