Rename Enterprise#available_variants to distributed_variants to remove ambiguity between supplied/distributed variants

This commit is contained in:
Rohan Mitchell
2013-04-05 16:51:51 +11:00
parent 5649a50e28
commit f66ff0f8b1
4 changed files with 12 additions and 13 deletions

View File

@@ -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