lib/representable/decorator.rb in representable-2.0.3 vs lib/representable/decorator.rb in representable-2.0.4

- old
+ new

@@ -12,9 +12,10 @@ Representable::Decorator end include Representable # include after class methods so Decorator::prepare can't be overwritten by Representable::prepare. + # TODO: implement that just by calling ::property(name, options){include mod} on the inheriting representer. module InheritModule def inherit_module!(parent) inherited_attrs = parent.representable_attrs[:definitions].keys super # in Representable, calls representable_attrs.inherit!(parent.representable_attrs).