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)


30
31
32
# File 'lib/rest_framework/controller_mixins/bulk.rb', line 30

def destroy_all
  raise NotImplementedError, "TODO"
end

#destroy_all!Object

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

Raises:

  • (NotImplementedError)


35
36
37
# File 'lib/rest_framework/controller_mixins/bulk.rb', line 35

def destroy_all!
  raise NotImplementedError, "TODO"
end