summaryrefslogtreecommitdiff
path: root/app/decorators/super_good/solidus_taxjar/spree/shipment/fire_shipment_shipped_event.rb
blob: a109745b81fbb9c1e1170443c2266225a54edfb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

module SuperGood
  module SolidusTaxjar
    module Spree
      module Shipment
        module FireShipmentShippedEvent
          def after_ship
            ::Spree::Event.fire 'shipment_shipped', shipment: self
            super
          end

          ::Spree::Shipment.prepend(self)
        end
      end
    end
  end
end