From cefa36c8806deaf9057ba8df92553d1ddc13e811 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Sun, 1 Mar 2026 00:28:57 -0500 Subject: [PATCH] Removed unsued Customer destroy method --- app/controllers/customers_controller.rb | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/app/controllers/customers_controller.rb b/app/controllers/customers_controller.rb index d74aa81..ac4f540 100644 --- a/app/controllers/customers_controller.rb +++ b/app/controllers/customers_controller.rb @@ -120,18 +120,6 @@ class CustomersController < ApplicationController end end - # delete a customer - def destroy - begin - Customer.find_by_id(params[:id]).destroy - flash[:notice] = t :notice_customer_deleted - redirect_to action: :index - rescue - flash[:error] = t :notice_customer_not_deleted - render_404 - end - end - # creates new customer view tokens, removes expired tokens & redirects to newly created customer view with new token. def share issue = Issue.find(params[:id])