mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-27 06:05:19 +00:00
autocorrect Style/ArrayIntersect offenses
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user