Module: RESTFramework::DestroyModelMixin
- Included in:
- ModelControllerMixin
- Defined in:
- lib/rest_framework/controller_mixins/models.rb
Overview
Mixin for destroying records.
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
219 220 221 222 223 |
# File 'lib/rest_framework/controller_mixins/models.rb', line 219 def destroy @record = self.get_record @record.destroy! api_response(nil) end |