Class: ArLazyPreload::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/ar_lazy_preload/configuration.rb

Overview

ArLazyPreload configuration:

  • ‘auto_preload` - load all the associations lazily without

    an explicit lazy_preload call
    

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



11
12
13
# File 'lib/ar_lazy_preload/configuration.rb', line 11

def initialize
  @auto_preload = false
end

Instance Attribute Details

#auto_preloadObject Also known as: auto_preload?

Returns the value of attribute auto_preload.



9
10
11
# File 'lib/ar_lazy_preload/configuration.rb', line 9

def auto_preload
  @auto_preload
end