mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-30 06:31:16 +00:00
Rename Enterprise#available_variants to distributed_variants to remove ambiguity between supplied/distributed variants
This commit is contained in:
@@ -16,7 +16,7 @@ class DistributorChangeValidator
|
||||
|
||||
def available_distributors enterprises
|
||||
enterprises.select do |e|
|
||||
(@order.line_item_variants - e.available_variants).empty?
|
||||
(@order.line_item_variants - e.distributed_variants).empty?
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user