Sha256: de98a28e108c3b220acac48a1ab37c5013c5ef946031e1ad3d2375391d9eb6fe
Contents?: true
Size: 1.01 KB
Versions: 2
Compression:
Stored size: 1.01 KB
Contents
# frozen_string_literal: true module SolidusBactracs module Spree module ShipmentDecorator def self.prepended(base) base.singleton_class.prepend ClassMethods end module ClassMethods def exportable ::Spree::Deprecation.warn <<~DEPRECATION `Spree::Shipment.exportable` is deprecated and will be removed in a future version of solidus_bactracs. Please use `SolidusBactracs::Shipment::ExportableQuery.apply`. DEPRECATION SolidusBactracs::Shipment::ExportableQuery.apply(self) end def between(from, to) ::Spree::Deprecation.warn <<~DEPRECATION `Spree::Shipment.between` is deprecated and will be removed in a future version of solidus_bactracs. Please use `SolidusBactracs::Shipment::BetweenQuery.apply`. DEPRECATION SolidusBactracs::Shipment::BetweenQuery.apply(self, from: from, to: to) end end ::Spree::Shipment.prepend self end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
solidus_bactracs-3.1.1 | app/decorators/models/solidus_bactracs/spree/shipment_decorator.rb |
solidus_bactracs-3.1.0 | app/decorators/models/solidus_bactracs/spree/shipment_decorator.rb |