lib/react/component/base.rb in hyper-react-0.11.0 vs lib/react/component/base.rb in hyper-react-0.12.0

- old
+ new

@@ -1,9 +1,13 @@ module React module Component class Base def self.inherited(child) - child.include(Component) + # note this is turned off during old style testing: See the spec_helper + unless child.to_s == "React::Component::HyperTestDummy" + React::Component.deprecation_warning child, "The class name React::Component::Base has been deprecated. Use Hyperloop::Component instead." + end + child.include(ComponentNoNotice) end end end end