Fix typo in application setup

This was forcing env test in all environments breaking payment methods that are activated by environment
This commit is contained in:
Luis Ramos
2020-10-27 22:19:26 +00:00
parent 3beea43143
commit c2591104ee

View File

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