Sha256: fb4a2c24bc0aa2807082f974f8d1241ccb54807163afe1c53e712a7648f9bbc1

Contents?: true

Size: 521 Bytes

Versions: 63

Compression:

Stored size: 521 Bytes

Contents

eu_vat = Spree::Zone.create!(name: "EU_VAT", description: "Countries that make up the EU VAT zone.", kind: 'country')
north_america = Spree::Zone.create!(name: "North America", description: "USA + Canada", kind: 'country')

%w(PL FI PT RO DE FR SK HU SI IE AT ES IT BE SE LV BG GB LT CY LU MT DK NL EE HR CZ GR).
each do |name|
  eu_vat.zone_members.create!(zoneable: Spree::Country.find_by!(iso: name))
end

%w(US CA).each do |name|
  north_america.zone_members.create!(zoneable: Spree::Country.find_by!(iso: name))
end

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
spree_core-3.4.6 db/default/spree/zones.rb
spree_core-3.2.9 db/default/spree/zones.rb
spree_core-3.1.14 db/default/spree/zones.rb
spree_core-3.6.6 db/default/spree/zones.rb
spree_core-3.6.5 db/default/spree/zones.rb
spree_core-3.6.4 db/default/spree/zones.rb
spree_core-3.6.3 db/default/spree/zones.rb
spree_core-3.6.2 db/default/spree/zones.rb
spree_core-3.6.1 db/default/spree/zones.rb
spree_core-3.6.0 db/default/spree/zones.rb
spree_core-3.5.0 db/default/spree/zones.rb
spree_core-3.3.6 db/default/spree/zones.rb
spree_core-3.2.8 db/default/spree/zones.rb
spree_core-3.1.13 db/default/spree/zones.rb
spree_core-3.6.0.rc1 db/default/spree/zones.rb
spree_core-3.5.0.rc2 db/default/spree/zones.rb
spree_core-3.5.0.rc1 db/default/spree/zones.rb
spree_core-3.4.5 db/default/spree/zones.rb
spree_core-3.3.5 db/default/spree/zones.rb
spree_core-3.4.4 db/default/spree/zones.rb