Ammending comments to make slightly more clear

This commit is contained in:
Rob Harrington
2014-12-18 11:01:08 +11:00
parent 9f086facdb
commit 4b353fa27b

View File

@@ -113,8 +113,8 @@ class OrderCycle < ActiveRecord::Base
end
# If a product without variants is added to an order cycle, and then some variants are added
# to that product, then the master variant is still part of the order cycle, but customers
# should not be able to purchase it.
# to that product, but not the order cycle, then the master variant should not available for customers
# to purchase.
# This method filters out such products so that the customer cannot purchase them.
def valid_products_distributed_by(distributor)
variants = variants_distributed_by(distributor)
@@ -175,8 +175,8 @@ class OrderCycle < ActiveRecord::Base
private
# If a product without variants is added to an order cycle, and then some variants are added
# to that product, then the master variant is still part of the order cycle, but customers
# should not be able to purchase it.
# to that product, but not the order cycle, then the master variant should not available for customers
# to purchase.
# This method is used by #valid_products_distributed_by to filter out such products so that
# the customer cannot purchase them.
def product_has_only_obsolete_master_in_distribution?(product, distributed_variants)