From 02abe5cc063c5fc44ae604b6aeda9015b4d70284 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Wed, 9 Aug 2023 11:33:05 +0100 Subject: [PATCH] Remove dead code related to multiple product taxons --- app/services/sets/product_set.rb | 6 ------ 1 file changed, 6 deletions(-) diff --git a/app/services/sets/product_set.rb b/app/services/sets/product_set.rb index 1adcdcb579..ba3fb40240 100644 --- a/app/services/sets/product_set.rb +++ b/app/services/sets/product_set.rb @@ -46,18 +46,12 @@ module Sets # variant.update( { price: xx.x } ) # def update_product_attributes(attributes) - split_taxon_ids!(attributes) - product = find_model(@collection, attributes[:id]) return if product.nil? update_product(product, attributes) end - def split_taxon_ids!(attributes) - attributes[:taxon_ids] = attributes[:taxon_ids].split(',') if attributes[:taxon_ids].present? - end - def update_product(product, attributes) return false unless update_product_only_attributes(product, attributes)