Make sample data zone read from the environment variable CHECKOUT_ZONE

This commit is contained in:
luisramos0
2019-02-27 09:46:18 +00:00
parent d418ca1b1f
commit ad5c379771

View File

@@ -14,7 +14,7 @@ module Addressing
end
def zone
zone = Spree::Zone.find_or_create_by_name!("Australia")
zone = Spree::Zone.find_or_create_by_name!(ENV.fetch('CHECKOUT_ZONE'))
zone.members.create!(zonable: country)
zone
end