Files
fizzy/app/helpers/collections_helper.rb
T
Jorge Manrubia 956faaa67d More fine-grained approach to listen for broadcasted refresh signals
Only listen for collections actually involved in the view
2025-10-14 11:10:49 +02:00

6 lines
152 B
Ruby

module CollectionsHelper
def referenced_collections_from(records)
Current.user.collections.where id: records.pluck(:collection_id).uniq
end
end