change ui for delete backend
This commit is contained in:
@@ -63,10 +63,12 @@ class Settings::CommissionersController < ApplicationController
|
||||
# DELETE /commissioners/1.json
|
||||
def destroy
|
||||
@commissioner.destroy
|
||||
respond_to do |format|
|
||||
format.html {redirect_to settings_commissioners_path, notice: 'Commissioner was successfully destroyed.'}
|
||||
format.json {head :no_content}
|
||||
end
|
||||
flash[:notice] = 'Commissioner was successfully destroyed.'
|
||||
render :json => {:status=> "Success", :url => settings_commissioners_path }.to_json
|
||||
# respond_to do |format|
|
||||
# format.html {redirect_to settings_commissioners_path, notice: 'Commissioner was successfully destroyed.'}
|
||||
# format.json {head :no_content}
|
||||
# end
|
||||
end
|
||||
|
||||
def get_transaction_by_commissioner
|
||||
|
||||
Reference in New Issue
Block a user