Module: Tasks::StartBatchHandler

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

Instance Method Summary collapse

Instance Method Details

#do_start_batch_task(task, params) ⇒ Object


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

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