Class: ActiveRecordDataLoader::Dsl::Definition
- Inherits:
-
Object
- Object
- ActiveRecordDataLoader::Dsl::Definition
- Defined in:
- lib/active_record_data_loader/dsl/definition.rb
Instance Attribute Summary collapse
-
#models ⇒ Object
readonly
Returns the value of attribute models.
Instance Method Summary collapse
-
#initialize(config = ActiveRecordDataLoader.configuration) ⇒ Definition
constructor
A new instance of Definition.
- #model(klass, &block) ⇒ Object
Constructor Details
#initialize(config = ActiveRecordDataLoader.configuration) ⇒ Definition
Returns a new instance of Definition.
8 9 10 11 |
# File 'lib/active_record_data_loader/dsl/definition.rb', line 8 def initialize(config = ActiveRecordDataLoader.configuration) @models = [] @config = config end |
Instance Attribute Details
#models ⇒ Object (readonly)
Returns the value of attribute models.
6 7 8 |
# File 'lib/active_record_data_loader/dsl/definition.rb', line 6 def models @models end |