diff --git a/core/lib/spree/core/engine.rb b/core/lib/spree/core/engine.rb index ce9f74cfc48..9a67a5bea9e 100644 --- a/core/lib/spree/core/engine.rb +++ b/core/lib/spree/core/engine.rb @@ -90,6 +90,16 @@ class Engine < ::Rails::Engine Spree::UsersController.protect_from_forgery with: :exception end end + + config.after_initialize do + if Spree::Config.use_legacy_events && !ENV['CI'] + Spree::Deprecation.warn <<~MSG + Your Solidus store is using the legacy event system. You're + encouraged to switch to the new event bus. After you're done, you + can remove the `use_legacy_events` setting from `spree.rb`. + MSG + end + end end end end