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.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Fixed `Zone#country_list` zeitwerk issues
Damian Legawiecff71b70ddc4b
diff --git a/core/app/models/spree/zone.rb b/core/app/models/spree/zone.rbindex 4bcb762e44..52a43f5931 100644--- a/core/app/models/spree/zone.rb+++ b/core/app/models/spree/zone.rb@@ -111,10 +111,10 @@ module Spreedef country_list@countries ||= case kindwhen 'country' then- zoneables+ Country.where(id: country_ids)when 'state' then- zoneables.collect(&:country)- end.flatten.compact.uniq+ Country.where(id: zoneables.collect(&:country_id))+ endenddef <=>(other)