Module: Tasks::StartBatchHandler

Included in:
WorkflowsController
Defined in:
app/models/tasks/start_batch_handler.rb

Overview

rubocop:todo Style/Documentation

Instance Method Summary collapse

Instance Method Details

#do_start_batch_task(task, params) ⇒ Object


3
4
5
6
7
# File 'app/models/tasks/start_batch_handler.rb', line 3

def do_start_batch_task(task, params)
  return unless task.lab_activity?

  Batch.find(params[:batch_id]).start!(current_user) if @batch.may_start?
end