Skip to content

Commit

Permalink
Address warning: *' interpreted as argument prefix`
Browse files Browse the repository at this point in the history
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
595634e
  • Loading branch information
yahonda committed Oct 2, 2024
1 parent 1aa7ba9 commit fad15fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/channels/turbo/streams/broadcasts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit fad15fa

Please sign in to comment.