From ab542cfdb2fa096a1e399a63f5e9b3c29e7217a5 Mon Sep 17 00:00:00 2001 From: Pau Perez Date: Wed, 28 Nov 2018 17:39:51 +0100 Subject: [PATCH] Remove commented out code --- app/models/spree/product_decorator.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/app/models/spree/product_decorator.rb b/app/models/spree/product_decorator.rb index a7aefcee48..b836cb58e4 100644 --- a/app/models/spree/product_decorator.rb +++ b/app/models/spree/product_decorator.rb @@ -26,7 +26,6 @@ Spree::Product.class_eval do attr_accessible :variant_unit, :variant_unit_scale, :variant_unit_name, :unit_value attr_accessible :inherits_properties, :sku - # validates_presence_of :variants, unless: :new_record?, message: "Product must have at least one variant" validates_presence_of :supplier validates :primary_taxon, presence: { message: I18n.t("validation_msg_product_category_cant_be_blank") } validates :tax_category_id, presence: { message: I18n.t("validation_msg_tax") }, if: "Spree::Config.products_require_tax_category"