Use inquiry method

This commit is contained in:
Jason Zimdars
2025-08-31 15:28:01 -05:00
parent e86be26f43
commit 70b07f856f
+1 -1
View File
@@ -28,7 +28,7 @@ class Filter < ApplicationRecord
result = result.assigned_to(assignees.ids) if assignees.present?
result = result.where(creator_id: creators.ids) if creators.present?
result = result.where(collection: collections.ids) if collections.present?
result = result.in_stage(stages.ids) if stages.present? && engagement_status == "doing"
result = result.in_stage(stages.ids) if stages.present? && engagement_status&.doing?
result = result.tagged_with(tags.ids) if tags.present?
result = result.where("cards.created_at": creation_window) if creation_window
result = result.closed_at_window(closure_window) if closure_window