app/components/coco/presented_component.rb in coveragebook_components-0.19.0 vs app/components/coco/presented_component.rb in coveragebook_components-0.19.1
- old
+ new
@@ -20,10 +20,10 @@
subject = kwargs.fetch(collection_parameter.to_sym) do
raise ArgumentError, "Presented components require a subject to be provided when initializing"
end
end
- instance = kwargs.any? ? super(subject, **kwargs) : super(subject)
+ instance = kwargs.any? ? super : super(subject)
instance.subject = subject
instance
end
end
end