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



260
261
262
263
# File 'lib/miscellany/active_record/arbitrary_prefetch.rb', line 260

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