app/components/coco/component.rb in coveragebook_components-0.19.0 vs app/components/coco/component.rb in coveragebook_components-0.19.1
- old
+ new
@@ -63,10 +63,10 @@
# If a `before_initialize` callback returns a hash then
# that is used as the new kwargs value which will eventually
# be used to initialize the component.
kwargs = run_callbacks(:before_initialize, kwargs, reduce: true)
- obj = super(**kwargs)
+ obj = super
if obj.instance_of?(Coco::Component)
raise "`Coco::Component` must be subclassed before use"
end