From d50fc68772b83525ad15641a51165b5b4f563a26 Mon Sep 17 00:00:00 2001 From: Peter Berkenbosch Date: Mon, 29 Nov 2021 21:44:39 +0100 Subject: [PATCH] Use default Spree::Event::Adapter On installing this version (currenlty unreleased) of Solidus, we no longer support the ActiveSupport Notification adaptor, but rather the new `Spree::Event::Adapters::Default` This commit add that configuration to the spree.rb template so every generated install is using the new defaults. --- .../solidus/install/templates/config/initializers/spree.rb.tt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/lib/generators/solidus/install/templates/config/initializers/spree.rb.tt b/core/lib/generators/solidus/install/templates/config/initializers/spree.rb.tt index fa46ae2cf48..e91d0f51f80 100644 --- a/core/lib/generators/solidus/install/templates/config/initializers/spree.rb.tt +++ b/core/lib/generators/solidus/install/templates/config/initializers/spree.rb.tt @@ -1,3 +1,5 @@ +require "spree/event/adapters/default" + # Configure Solidus Preferences # See http://docs.solidus.io/Spree/AppConfiguration.html for details @@ -31,6 +33,8 @@ Spree.config do |config| # to a custom users role: # config.roles.assign_permissions :role_name, ['Spree::PermissionSets::CustomPermissionSet'] + # Default event adapter: + config.events.adapter = Spree::Event::Adapters::Default.new # Frontend: