mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-08 22:56:06 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user