From 03d242c061ca91fa5cb127279e222ecfe40286aa Mon Sep 17 00:00:00 2001 From: luisramos0 Date: Wed, 27 Feb 2019 23:19:39 +0000 Subject: [PATCH] Fix typo in sample_data zone creation (zonEable) and added clause to avoid re-adding the same country to the zone --- lib/tasks/sample_data/addressing.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/sample_data/addressing.rb b/lib/tasks/sample_data/addressing.rb index ea6ec7b2bb..bc1471e276 100644 --- a/lib/tasks/sample_data/addressing.rb +++ b/lib/tasks/sample_data/addressing.rb @@ -15,7 +15,7 @@ module Addressing def zone zone = Spree::Zone.find_or_create_by_name!(ENV.fetch('CHECKOUT_ZONE')) - zone.members.create!(zonable: country) + zone.members.create!(zoneable: country) unless zone.zoneables.include?(country) zone end