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
Deprecate Spree::Classifications::Reposition for Spree 5.5 (#13645)
Damian Legawiec3889f065a36b
diff --git a/spree/core/app/services/spree/classifications/reposition.rb b/spree/core/app/services/spree/classifications/reposition.rbindex 7490679b27..f04f01bc9c 100644--- a/spree/core/app/services/spree/classifications/reposition.rb+++ b/spree/core/app/services/spree/classifications/reposition.rb@@ -1,9 +1,14 @@module Spreemodule Classifications+ # @deprecated This service is deprecated and will be removed in Spree 5.5.class Repositionprepend Spree::ServiceModule::Basedef call(classification:, position:)+ Spree::Deprecation.warn(+ "#{self.class.name} is deprecated and will be removed in Spree 5.5.",+ caller_locations(2)+ )if position.is_a?(String) && !position.match(/^\d+$/)return failure(nil, I18n.t('errors.messages.not_a_number'))end