1a78de6f71
This will make the system listen for changes via the filtered collections, when any, or via all the collections otherwise.
9 lines
170 B
Ruby
9 lines
170 B
Ruby
module Collection::Broadcastable
|
|
extend ActiveSupport::Concern
|
|
|
|
included do
|
|
broadcasts_refreshes
|
|
broadcasts_refreshes_to ->(_) { :all_collections }
|
|
end
|
|
end
|