diff --git a/core/app/models/spree/calculator/flexi_rate.rb b/core/app/models/spree/calculator/flexi_rate.rb index b420cf50363..6f0d130acc1 100644 --- a/core/app/models/spree/calculator/flexi_rate.rb +++ b/core/app/models/spree/calculator/flexi_rate.rb @@ -8,6 +8,7 @@ class Calculator::FlexiRate < Calculator preference :currency, :string, default: ->{ Spree::Config[:currency] } def self.available?(_object) + Spree::Deprecation.warn('Spree::Calculator::FlexiRate::available is DEPRECATED. Use the instance method instead.') true end