Fixing a private method

This commit is contained in:
Will Marshall
2014-06-13 14:23:44 +10:00
parent 3aa9501480
commit d6098ec2de

View File

@@ -79,11 +79,6 @@ Spree::Variant.class_eval do
self.weight = unit_value / 1000 if self.product.variant_unit == 'weight' && unit_value.present?
end
def delete_unit_option_values
ovs = self.option_values.where(option_type_id: Spree::Product.all_variant_unit_option_types)
self.option_values.destroy ovs
end
def option_value_name
if display_as.present?
display_as