From 1adf94093efa1724fcfbfcc87c0c704ef6370ab8 Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Wed, 7 Jan 2026 15:34:24 +1100 Subject: [PATCH] Merge related initializer code The division came likely from Spree times. --- config/application.rb | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/config/application.rb b/config/application.rb index 5071eab71b..a91177cc49 100644 --- a/config/application.rb +++ b/config/application.rb @@ -79,7 +79,9 @@ module Openfoodnetwork initializer "spree.register.payment_methods" do |app| Rails.application.reloader.to_prepare do app.config.spree.payment_methods = [ - Spree::PaymentMethod::Check + Spree::PaymentMethod::Check, + Spree::Gateway::StripeSCA, + Spree::Gateway::PayPalExpress, ] end end @@ -131,14 +133,6 @@ module Openfoodnetwork end end - # Register Spree payment methods - initializer "spree.gateway.payment_methods", :after => "spree.register.payment_methods" do |app| - Rails.application.reloader.to_prepare do - app.config.spree.payment_methods << Spree::Gateway::StripeSCA - app.config.spree.payment_methods << Spree::Gateway::PayPalExpress - end - end - initializer "ofn.reports" do |app| module ::Reporting; end Rails.application.reloader.to_prepare do