Use inquiry method
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user