No need to modify this filter, it was already working well

This commit is contained in:
Jorge Manrubia
2025-04-03 14:25:38 +02:00
parent 91ddb1d093
commit cf8331dad7
+1 -1
View File
@@ -19,7 +19,7 @@ class Filter < ApplicationRecord
def bubbles
@bubbles ||= begin
result = creator.accessible_bubbles.indexed_by(indexed_by)
result = indexed_by.popped? ? result.popped : result.active
result = result.active unless indexed_by.popped?
result = result.unassigned if assignment_status.unassigned?
result = result.assigned_to(assignees.ids) if assignees.present?
result = result.where(creator_id: creators.ids) if creators.present?