Skip to content

Commit

Permalink
Merge pull request #5028 from nebulab/kennyadsl/fulfillment-changer-p…
Browse files Browse the repository at this point in the history
…rivate-constant

Mark FulfilmentChanger::TRACK_INVENTORY_NOT_PROVIDED as private
  • Loading branch information
kennyadsl authored Apr 20, 2023
2 parents 5111949 + 94d2489 commit 7534fd1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/app/models/spree/fulfilment_changer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7534fd1

Please sign in to comment.