Merge related initializer code

The division came likely from Spree times.
This commit is contained in:
Maikel Linke
2026-01-07 15:34:24 +11:00
parent 18ef5cc69a
commit 1adf94093e

View File

@@ -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