diff --git a/legacy_promotions/lib/solidus_legacy_promotions/engine.rb b/legacy_promotions/lib/solidus_legacy_promotions/engine.rb index ba7fe49583e..8dbb3655702 100644 --- a/legacy_promotions/lib/solidus_legacy_promotions/engine.rb +++ b/legacy_promotions/lib/solidus_legacy_promotions/engine.rb @@ -6,6 +6,10 @@ module SolidusLegacyPromotions class Engine < ::Rails::Engine include SolidusSupport::EngineExtensions + initializer "solidus_legacy_promotions.patch_state_machine", after: "spree.load_config_initializers" do + config.to_prepare { SolidusLegacyPromotions::SpreeOrderStateMachineDecorator } + end + initializer "solidus_legacy_promotions.add_backend_menu_item" do if SolidusSupport.backend_available? promotions_menu_item = Spree::BackendConfiguration::MenuItem.new(