Sha256: 122e52ab9d4b5f4901b2fd0353d8429f7bc65fa5bc1c95d56cf90b29f2f69b4b
Contents?: true
Size: 508 Bytes
Versions: 6
Compression:
Stored size: 508 Bytes
Contents
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). 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
6 entries across 6 versions & 1 rubygems