Sha256: 27abe1bca7e02ac463ffb2aecf9a805bb1f91d71e6209563b02535375f989c62
Contents?: true
Size: 580 Bytes
Versions: 19
Compression:
Stored size: 580 Bytes
Contents
eu_vat = Spree::Zone.where(name: 'EU_VAT', description: 'Countries that make up the EU VAT zone.', kind: 'country').first_or_create! north_america = Spree::Zone.where(name: 'North America', description: 'USA + Canada', kind: 'country').first_or_create! %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.where(zoneable: Spree::Country.find_by!(iso: name)).first_or_create! end %w(US CA).each do |name| north_america.zone_members.where(zoneable: Spree::Country.find_by!(iso: name)).first_or_create! end
Version data entries
19 entries across 19 versions & 1 rubygems