Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Removing Variant#track_inventory (#11541)

Damian Legawiec33dd2262ed4e
diff --git a/core/app/models/spree/variant.rb b/core/app/models/spree/variant.rb
index 301c9ee4cb..0db58f84c4 100644
--- a/core/app/models/spree/variant.rb
+++ b/core/app/models/spree/variant.rb
@@ -285,10 +285,6 @@ module Spree
track_inventory? && Spree::Config.track_inventory_levels
end
- def track_inventory
- should_track_inventory?
- end
-
def volume
(width || 0) * (height || 0) * (depth || 0)
end