Class: ArLazyPreload::Configuration
- Inherits:
-
Object
- Object
- ArLazyPreload::Configuration
- 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
-
#auto_preload ⇒ Object
(also: #auto_preload?)
Returns the value of attribute auto_preload.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_preload ⇒ Object 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 |