Method: Gatherable::ApplicationController#destroy

Defined in:
app/controllers/gatherable/application_controller.rb

#destroyObject



37
38
39
40
41
42
# File 'app/controllers/gatherable/application_controller.rb', line 37

def destroy
  model_instance.delete
  head :no_content
rescue ActiveRecord::RecordNotFound => e
  render :json => { :errors => e.message}, :status => :not_found
end