diff --git a/app/models/customer.rb b/app/models/customer.rb index c1af111f4f..71025435ff 100644 --- a/app/models/customer.rb +++ b/app/models/customer.rb @@ -46,6 +46,6 @@ class Customer < ActiveRecord::Base return true unless orders.any? errors[:base] << I18n.t('admin.customers.destroy.has_associated_orders') - false + throw :abort end end