Merge pull request #1800 from basecamp/fix-broadcast

Scope general broadcasts by account
This commit is contained in:
Jorge Manrubia
2025-12-02 18:16:32 +01:00
committed by GitHub
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -3,5 +3,6 @@ module Board::Broadcastable
included do
broadcasts_refreshes
broadcasts_refreshes_to ->(board) { [ board.account, :all_boards ] }
end
end
+1 -1
View File
@@ -3,5 +3,5 @@
<%= turbo_stream_from board %>
<% end %>
<% else %>
<%= turbo_stream_from :all_boards %>
<%= turbo_stream_from [ Current.account, :all_boards ] %>
<% end %>