Module: Spree::StockMovement::CustomEvents

Extended by:
ActiveSupport::Concern
Included in:
Spree::StockMovement
Defined in:
app/models/spree/stock_movement/custom_events.rb

Overview

Publishes custom stock events when stock levels change.

Events:

  • product.out_of_stock: Product has no stock left for any variant

  • product.back_in_stock: Product was out of stock and now has stock again