Class: AmsLazyRelationships::Loaders::Association
- Defined in:
- lib/ams_lazy_relationships/loaders/association.rb
Overview
Lazy loads (has_one/has_many/has_many_through/belongs_to) ActiveRecord associations for ActiveRecord models
Instance Method Summary collapse
-
#initialize(model_class_name, association_name) ⇒ Association
constructor
A new instance of Association.
Methods inherited from Base
Constructor Details
#initialize(model_class_name, association_name) ⇒ Association
Returns a new instance of Association.
15 16 17 18 |
# File 'lib/ams_lazy_relationships/loaders/association.rb', line 15 def initialize(model_class_name, association_name) @model_class_name = model_class_name @association_name = association_name end |