From a35a07b441b7b60674be6987570a23acc50fb0e9 Mon Sep 17 00:00:00 2001 From: Neal Chambers Date: Wed, 26 Apr 2023 23:20:37 +0900 Subject: [PATCH] Rewrite sum to be more Readable --- app/models/product_import/entry_processor.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/product_import/entry_processor.rb b/app/models/product_import/entry_processor.rb index 9c1d164821..4fada7bef3 100644 --- a/app/models/product_import/entry_processor.rb +++ b/app/models/product_import/entry_processor.rb @@ -90,7 +90,8 @@ module ProductImport end def total_saved_count - @products_created + @variants_created + @variants_updated + @inventory_created + @inventory_updated + [@products_created, @variants_created, @variants_updated, + @inventory_created, @inventory_updated].sum end def permission_by_id?(enterprise_id)