mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-04-02 08:21:57 -04:00
Removed unsued Customer destroy method
This commit is contained in:
@@ -120,18 +120,6 @@ class CustomersController < ApplicationController
|
|||||||
end
|
end
|
||||||
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.
|
# creates new customer view tokens, removes expired tokens & redirects to newly created customer view with new token.
|
||||||
def share
|
def share
|
||||||
issue = Issue.find(params[:id])
|
issue = Issue.find(params[:id])
|
||||||
|
|||||||
Reference in New Issue
Block a user