Sha256: 9ccbcda59d78932ffc5fb6f0e8a07fc727c1bed5319cca6a4250d5da9aba34b5
Contents?: true
Size: 548 Bytes
Versions: 27
Compression:
Stored size: 548 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.create!(zoneable: Spree::Country.find_by!(iso: symbol)) end %w(US CA).each do |symbol| north_america.zone_members.create!(zoneable: Spree::Country.find_by!(iso: symbol)) end
Version data entries
27 entries across 27 versions & 2 rubygems