Remove code related to spree promotions

This commit is contained in:
Luis Ramos
2020-09-03 22:58:45 +01:00
parent 79a7cf9b39
commit 66fb3a9cf3

View File

@@ -23,16 +23,6 @@ module Openfoodnetwork
end
end
config.after_initialize do
ActiveSupport::Notifications.subscribe(/^spree\./) do |*args|
event_name, _start_time, _end_time, _id, payload = args
Activator.active.event_name_starts_with(event_name).each do |activator|
payload[:event_name] = event_name
activator.activate(payload)
end
end
end
initializer "spree.environment", before: :load_config_initializers do |app|
app.config.spree = Spree::Core::Environment.new
Spree::Config = app.config.spree.preferences # legacy access