Use database default value for stock_items.backorderable

This commit is contained in:
Maikel Linke
2024-10-02 15:09:44 +10:00
parent af07358914
commit 662467a1a4

View File

@@ -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)