Module: DataControllerConfiguration::BatchByFilterScope

Extended by:
ActiveSupport::Concern
Included in:
AttributionsController, ConfidencesController, IdentifiersController, ProtocolRelationshipsController
Defined in:
app/controllers/concerns/data_controller_configuration/batch_by_filter_scope.rb

Overview

Users must implement batch_by_filter_scop_params, which should require a ‘batch_params` key and permit batch parameters specific to the model.

Instance Method Summary collapse

Instance Method Details

#batch_by_filter_scope_paramsObject

Raises:

  • (TaxonWorks::Error)


31
32
33
34
35
# File 'app/controllers/concerns/data_controller_configuration/batch_by_filter_scope.rb', line 31

def batch_by_filter_scope_params
  raise TaxonWorks::Error, 'batch_by_filter_scope_params is undefined!'
  # e.g.
  # params.require(:batch_params).permit(:namespace_id, identifier_types: [])
end