Method: ROM::Mapper::DSL::ClassMethods#inherited

Defined in:
lib/rom/mapper/dsl.rb

#inherited(klass) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Set base ivars for the mapper class



23
24
25
26
27
28
29
# File 'lib/rom/mapper/dsl.rb', line 23

def inherited(klass)
  super

  klass.instance_variable_set('@attributes', nil)
  klass.instance_variable_set('@header', nil)
  klass.instance_variable_set('@dsl', nil)
end