mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Fixing a private method
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user