Update customer.rb

This commit is contained in:
2016-05-02 14:07:14 -04:00
parent a1530fb952
commit a020231224

View File

@@ -126,7 +126,7 @@ class Customer < ActiveRecord::Base
end end
# remove deleted customers # remove deleted customers
where.not(customers.map(&:id)).destroy_all #where.not(customers.map(&:id)).destroy_all
end end
# Magic Method # Magic Method