diff --git a/app/models/filter/summarized.rb b/app/models/filter/summarized.rb index a1286da23..67f194e81 100644 --- a/app/models/filter/summarized.rb +++ b/app/models/filter/summarized.rb @@ -13,13 +13,13 @@ module Filter::Summarized end def tag_summary - if tags.exists? + if tags.any? "tagged #{tags.map(&:hashtag).to_choice_sentence}" end end def assignee_summary - if assignees.exists? + if assignees.any? "assigned to #{assignees.pluck(:name).to_choice_sentence}" elsif assignments.unassigned? "assigned to no one" @@ -27,7 +27,7 @@ module Filter::Summarized end def bucket_summary - if buckets.exists? + if buckets.any? "in #{buckets.pluck(:name).to_choice_sentence}" else "in all projects"