Module: Representable::Decorator::InheritModule
- Included in:
- Representable::Decorator
- Defined in:
- lib/representable/decorator.rb
Overview
TODO: implement that just by calling ::property(name, options)mod on the inheriting representer.
Instance Method Summary collapse
Instance Method Details
#inherit_module!(parent) ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/representable/decorator.rb', line 21 def inherit_module!(parent) inherited_attrs = parent.representable_attrs[:definitions].keys super # in Representable, calls representable_attrs.inherit!(parent.representable_attrs). # now, inline representers are still modules, which is wrong. manifest!(inherited_attrs) end |