Module: RESTFramework::BulkDestroyModelMixin

Included in:
BulkModelControllerMixin
Defined in:
lib/rest_framework/controller_mixins/bulk.rb

Overview

Mixin for destroying records in bulk.

Instance Method Summary collapse

Instance Method Details

#destroy_allObject

Raises:

  • (NotImplementedError)


60
61
62
# File 'lib/rest_framework/controller_mixins/bulk.rb', line 60

def destroy_all
  raise NotImplementedError, "TODO"
end

#destroy_all!Object

Perform the ‘destroy!` call and return the destroyed (and frozen) record.

Raises:

  • (NotImplementedError)


65
66
67
# File 'lib/rest_framework/controller_mixins/bulk.rb', line 65

def destroy_all!
  raise NotImplementedError, "TODO"
end