Method: Scimitar::ResourcesController#destroy
- Defined in:
- app/controllers/scimitar/resources_controller.rb
#destroy ⇒ Object
DELETE (remove)
119 120 121 122 123 124 125 126 127 128 |
# File 'app/controllers/scimitar/resources_controller.rb', line 119 def destroy if yield(self.safe_params()[:id]) != false head :no_content else raise ErrorResponse.new( status: 500, detail: "Failed to delete the resource with id '#{params[:id]}'. Please try again later." ) end end |