From 94d24891f0de579bda47024275a331f9fcddad2e Mon Sep 17 00:00:00 2001 From: Alberto Vena Date: Wed, 19 Apr 2023 09:44:52 +0200 Subject: [PATCH] Mark FulfilmentChanger::TRACK_INVENTORY_NOT_PROVIDED as private This constant is only used internally for the deprecation of not passing the track_inventory argument to the initializer of this class. We are marking it as private so we are sure no one is using it. --- core/app/models/spree/fulfilment_changer.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/app/models/spree/fulfilment_changer.rb b/core/app/models/spree/fulfilment_changer.rb index 377299f460e..fcd8a8132b3 100644 --- a/core/app/models/spree/fulfilment_changer.rb +++ b/core/app/models/spree/fulfilment_changer.rb @@ -17,7 +17,11 @@ module Spree # @attr [Integer] quantity How many units we want to move # class FulfilmentChanger + # @note This private constant is only used to deprecate not passing the `track_inventory` argument + # on initialization. It will be removed in Solidus 4.0, please do not use it. TRACK_INVENTORY_NOT_PROVIDED = Object.new.freeze + private_constant :TRACK_INVENTORY_NOT_PROVIDED + include ActiveModel::Validations attr_accessor :current_shipment, :desired_shipment