mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Use database default value for stock_items.backorderable
This commit is contained in:
@@ -18,7 +18,7 @@ module Spree
|
||||
|
||||
# Wrapper for creating a new stock item respecting the backorderable config
|
||||
def propagate_variant(variant)
|
||||
stock_items.create!(variant:, backorderable: backorderable_default)
|
||||
stock_items.create!(variant:)
|
||||
end
|
||||
|
||||
def stock_item(variant)
|
||||
|
||||
Reference in New Issue
Block a user