Remove anemic scope

This commit is contained in:
David Heinemeier Hansson
2025-04-18 17:18:13 +02:00
parent f368b9f9c9
commit cacee0febb
3 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ class Filter < ApplicationRecord
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?
result = result.in_collection(collections.ids) if collections.present?
result = result.where(collection: collections.ids) if collections.present?
result = result.in_stage(stages.ids) if stages.present?
result = result.tagged_with(tags.ids) if tags.present?
result = terms.reduce(result) do |result, term|