1a78de6f71
This will make the system listen for changes via the filtered collections, when any, or via all the collections otherwise.
8 lines
198 B
Plaintext
8 lines
198 B
Plaintext
<% if filter.collections.any? %>
|
|
<% filter.collections.each do |collection| %>
|
|
<%= turbo_stream_from collection %>
|
|
<% end %>
|
|
<% else %>
|
|
<%= turbo_stream_from :all_collections %>
|
|
<% end %>
|