Class: ArLazyPreload::Contexts::AutoPreloadContext

Inherits:
BaseContext
  • Object
show all
Defined in:
lib/ar_lazy_preload/contexts/auto_preload_context.rb

Overview

This class is responsible for automatic association preloading

Instance Attribute Summary

Attributes inherited from BaseContext

#records

Instance Method Summary collapse

Methods inherited from BaseContext

#association_tree, #initialize, #try_preload_lazily

Constructor Details

This class inherits a constructor from ArLazyPreload::Contexts::BaseContext

Instance Method Details

#auto_preload?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/ar_lazy_preload/contexts/auto_preload_context.rb', line 7

def auto_preload?
  true
end