Module: RESTFramework::BulkCreateModelMixin

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

Overview

Mixin for creating records in bulk. This is unique compared to update/destroy because we overload the existing ‘create` action to support bulk creation.

Instance Method Summary collapse

Instance Method Details

#createObject

Raises:

  • (NotImplementedError)


6
7
8
# File 'lib/rest_framework/controller_mixins/bulk.rb', line 6

def create
  raise NotImplementedError, "TODO"
end

#create_all!Object

Perform the ‘create!` call and return the created record.

Raises:

  • (NotImplementedError)


11
12
13
# File 'lib/rest_framework/controller_mixins/bulk.rb', line 11

def create_all!
  raise NotImplementedError, "TODO"
end