Method: Api::V2::ApplicationController#destroy
- Defined in:
- app/controllers/api/v2/application_controller.rb
#destroy ⇒ Object
86 87 88 89 90 91 92 93 94 95 96 |
# File 'app/controllers/api/v2/application_controller.rb', line 86 def destroy :destroy, @record # Custom Action status, result = check_for_custom_action return render json: result, status: 200 if status == true # Normal Destroy Action return api_error(status: 500) unless @record.destroy head :ok end |