hotwired / turbo-rails

Use Turbo in your Ruby on Rails app
https://turbo.hotwired.dev
MIT License
2.03k stars 305 forks source link

Customize target when broadcasting #605

Open genezys opened 3 months ago

genezys commented 3 months ago

Many methods in the Broadcastable concern are missing the target argument. This PR replaces all hard-coded targets with a default value on the argument.

This allows more control over the Broacastable methods when one cannot use the broadcasts ou broadcasts_to shortcuts because of specifics.