Module: AmsLazyRelationships::Core::ClassMethods

Includes:
Evaluation, LazyRelationshipMethod, RelationshipWrapperMethods
Defined in:
lib/ams_lazy_relationships/core.rb

Instance Method Summary collapse

Methods included from LazyRelationshipMethod

#lazy_relationship

Instance Method Details

#inherited(subclass) ⇒ Object



33
34
35
36
37
38
39
40
41
# File 'lib/ams_lazy_relationships/core.rb', line 33

def inherited(subclass)
  super

  return unless @lazy_relationships

  subclass.instance_variable_set(
    :@lazy_relationships, @lazy_relationships.clone
  )
end