Method: ClassificationsController#destroy

Defined in:
app/controllers/classifications_controller.rb

#destroyObject

DELETE /classifications/1 DELETE /classifications/1.json



101
102
103
104
105
106
107
108
109
# File 'app/controllers/classifications_controller.rb', line 101

def destroy
  @classification = Classification.find(params[:id])
  @classification.destroy

  respond_to do |format|
    format.html { redirect_to classifications_url, notice: t('controller.successfully_deleted', model: t('activerecord.models.classification')) }
    format.json { head :no_content }
  end
end