mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Make sample data zone read from the environment variable CHECKOUT_ZONE
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user