remove setting of Spree::Config country code

This commit is contained in:
Andy Brett
2021-05-19 09:33:02 -07:00
parent 7df2915fbd
commit 45ad4bbcf1

View File

@@ -75,13 +75,6 @@ module Openfoodnetwork
initializer 'ofn.spree_locale_settings', before: 'spree.promo.environment' do |app|
Spree::Config['checkout_zone'] = ENV['CHECKOUT_ZONE']
Spree::Config['currency'] = ENV['CURRENCY']
begin
country = Spree::Country.find_by(iso: ENV['DEFAULT_COUNTRY_CODE'])
Spree::Config['default_country_id'] = country.id if country.present?
rescue ::ActiveRecord::StatementInvalid
Spree::Config['default_country_id'] = 12 # Australia
end
end
# Register Spree calculators