Sha256: 29e0ad44c8172087cb1b053694a84c8aa0cc4af09c473867a37b13fe425e762e

Contents?: true

Size: 570 Bytes

Versions: 106

Compression:

Stored size: 570 Bytes

Contents

# frozen_string_literal: true

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

%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 |symbol|
  eu_vat.zone_members.find_or_create_by!(zoneable: Spree::Country.find_by!(iso: symbol))
end

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

Version data entries

106 entries across 106 versions & 1 rubygems

Version Path
solidus_core-4.4.2 db/default/spree/zones.rb
solidus_core-4.4.1 db/default/spree/zones.rb
solidus_core-4.4.0 db/default/spree/zones.rb
solidus_core-4.3.4 db/default/spree/zones.rb
solidus_core-4.2.4 db/default/spree/zones.rb
solidus_core-4.1.5 db/default/spree/zones.rb
solidus_core-4.3.3 db/default/spree/zones.rb
solidus_core-4.3.2 db/default/spree/zones.rb
solidus_core-4.1.4 db/default/spree/zones.rb
solidus_core-4.3.1 db/default/spree/zones.rb
solidus_core-4.3.0 db/default/spree/zones.rb
solidus_core-4.2.3 db/default/spree/zones.rb
solidus_core-4.1.3 db/default/spree/zones.rb
solidus_core-4.0.4 db/default/spree/zones.rb
solidus_core-3.4.6 db/default/spree/zones.rb
solidus_core-4.0.3 db/default/spree/zones.rb
solidus_core-4.1.2 db/default/spree/zones.rb
solidus_core-4.2.2 db/default/spree/zones.rb
solidus_core-3.4.5 db/default/spree/zones.rb
solidus_core-4.2.1 db/default/spree/zones.rb