From 3de06cad116f6a244687fa436675a87f62c15370 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Mon, 2 May 2016 14:03:32 -0400 Subject: [PATCH] Update customer.rb --- app/models/customer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/customer.rb b/app/models/customer.rb index 1cdff70..1b589a4 100644 --- a/app/models/customer.rb +++ b/app/models/customer.rb @@ -126,7 +126,7 @@ class Customer < ActiveRecord::Base end # remove deleted customers - #where.not(customers.map(&:id)).destroy_all + where.not(customers.map(&:id)).destroy_all end # Magic Method