Skip to content

Commit 1950b94

Browse files
committed
Deprecation fix: to saved_changes?
1 parent 2fe83ce commit 1950b94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/spree/line_item_decorator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def quantity_by_variant
4040
private
4141

4242
def update_inventory
43-
if (changed? || target_shipment.present?) &&
43+
if (saved_changes? || target_shipment.present?) &&
4444
order.has_checkout_step?("delivery")
4545
if product.assembly?
4646
OrderInventoryAssembly.new(self).verify(target_shipment)

0 commit comments

Comments
 (0)