mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-10 03:30:22 +00:00
Remove code related to spree promotions
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user