Fix error in countries.rb

This commit is contained in:
Matt-Yorkley
2020-10-18 19:49:48 +01:00
parent 3612386463
commit 58c0d90575

View File

@@ -227,4 +227,4 @@ Spree::Country.create!([
{ name: "Saint Kitts and Nevis", iso3: "KNA", iso: "KN", iso_name: "SAINT KITTS AND NEVIS", numcode: "659" },
{ name: "Serbia", iso3: "SRB", iso: "RS", "iso_name" => "SERBIA", numcode: "999" }
])
Spree::Config[:default_country_id] = Spree::Country.find_by(iso: ENV.fetch("DEFAULT_COUNTRY_CODE", "US").id)
Spree::Config[:default_country_id] = Spree::Country.find_by(iso: ENV.fetch("DEFAULT_COUNTRY_CODE", "US")).id