app/components/coco/app/elements/notice/notice.rb in coveragebook_components-0.7.9 vs app/components/coco/app/elements/notice/notice.rb in coveragebook_components-0.7.10
- old
+ new
@@ -10,11 +10,11 @@
wraps_component :alert do |args|
Coco::App::Elements::Alert.new(**args, dismissable: get_option_value(:dismissable))
end
%i[title action secondary_action link].each do |slot_name|
- renders_one slot_name, ->(**kwargs, &block) do
- alert.send("with_#{slot_name}".to_sym, **kwargs, &block)
+ renders_one slot_name, ->(*args, **kwargs, &block) do
+ alert.send("with_#{slot_name}".to_sym, *args, **kwargs, &block)
end
end
end
end
end