From fad15fa74d1bedecdb5ecc75b0a75c8b5ce9f6ed Mon Sep 17 00:00:00 2001 From: Yasuo Honda Date: Wed, 2 Oct 2024 15:23:16 +0900 Subject: [PATCH] Address `warning: `*' interpreted as argument prefix` This commit addresses the following warning appeared at Rails CI. https://buildkite.com/rails/rails/builds/112102#01924ba4-ac89-4b7b-811d-6a6d37a241a1/1308-1314 ```ruby /usr/local/bundle/gems/turbo-rails-2.0.10/app/channels/turbo/streams/broadcasts.rb:41: warning: `*' interpreted as argument prefix ``` This line has been updated via this commit and released in v2.0.10 https://github.com/hotwired/turbo-rails/commit/595634e8223bba6f0314dc9a11068063fa807d5e --- app/channels/turbo/streams/broadcasts.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/channels/turbo/streams/broadcasts.rb b/app/channels/turbo/streams/broadcasts.rb index 28c57510..ea63df01 100644 --- a/app/channels/turbo/streams/broadcasts.rb +++ b/app/channels/turbo/streams/broadcasts.rb @@ -38,8 +38,8 @@ def broadcast_refresh_to(*streamables, **opts) end def broadcast_action_to(*streamables, action:, target: nil, targets: nil, attributes: {}, **rendering) - broadcast_stream_to *streamables, content: turbo_stream_action_tag( - action, target: target, targets: targets, template: render_broadcast_action(rendering), **attributes + broadcast_stream_to(*streamables, content: turbo_stream_action_tag( + action, target: target, targets: targets, template: render_broadcast_action(rendering), **attributes) ) end