From c2591104ee9028923b78a95d59585dcf9d6a445a Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Tue, 27 Oct 2020 22:19:26 +0000 Subject: [PATCH] Fix typo in application setup This was forcing env test in all environments breaking payment methods that are activated by environment --- config/application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/application.rb b/config/application.rb index f635c67a95..9377984296 100644 --- a/config/application.rb +++ b/config/application.rb @@ -25,7 +25,7 @@ module Openfoodnetwork config.after_initialize do # We need this here because the test env file loads before the Spree engine is loaded - Spree::Core::Engine.routes.default_url_options[:host] = 'test.host' if Rails.env = 'test' + Spree::Core::Engine.routes.default_url_options[:host] = 'test.host' if Rails.env == 'test' end # We reload the routes here