mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-11 03:40:20 +00:00
Remove duplicate method
This commit is contained in:
@@ -29,7 +29,7 @@ module ProductImport
|
||||
|
||||
def save_all(entries)
|
||||
entries.each do |entry|
|
||||
if import_into_inventory?(entry)
|
||||
if settings.importing_into_inventory?
|
||||
save_to_inventory(entry)
|
||||
else
|
||||
save_to_product_list(entry)
|
||||
@@ -124,10 +124,6 @@ module ProductImport
|
||||
@variants_updated += 1
|
||||
end
|
||||
|
||||
def import_into_inventory?(entry)
|
||||
entry.enterprise_id && settings.importing_into_inventory?
|
||||
end
|
||||
|
||||
def save_new_inventory_item(entry)
|
||||
new_item = entry.product_object
|
||||
assign_defaults(new_item, entry)
|
||||
|
||||
Reference in New Issue
Block a user