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
276 277 278 279 |
# File 'lib/rest_framework/controller_mixins/models.rb', line 276 def _destroy @record = self.get_record @record.destroy! end |
#destroy ⇒ Object
271 272 273 274 |
# File 'lib/rest_framework/controller_mixins/models.rb', line 271 def destroy self._destroy api_response("") end |