autocorrect Style/ArrayIntersect offenses

This commit is contained in:
Carlos Chitty
2025-04-29 14:20:50 -04:00
parent d20ed5c757
commit 17a5b5e620
7 changed files with 6 additions and 18 deletions

View File

@@ -59,7 +59,7 @@ module OpenFoodNetwork
def customer_tags_match?(rule)
preferred_tags = rule.preferred_customer_tags.split(",")
(customer_tags & preferred_tags).any?
customer_tags.intersect?(preferred_tags)
end
end
end