lib/representable.rb in representable-2.2.1 vs lib/representable.rb in representable-2.2.2

- old
+ new

@@ -87,9 +87,10 @@ super base.inherit_module!(self) end def inherited(subclass) # DISCUSS: this could be in Decorator? but then we couldn't do B < A(include X) for non-decorators, right? + super # FIXME: subclass.representable_attrs is ALWAYS empty at this point. subclass.representable_attrs.inherit!(representable_attrs) # this should be inherit_class! # DISCUSS: this could also just be: subclass.inheritable_attr :representable_attrs --> superclass.representable_attrs.clone end end \ No newline at end of file