Class: IlluminaC::QcPoolPurpose

Inherits:
Tube::Purpose
  • Object
show all
Defined in:
app/models/illumina_c/qc_pool_purpose.rb

Instance Method Summary collapse

Instance Method Details

#transition_to(tube, state, _user, _ = nil, _customer_accepts_responsibility = false) ⇒ Object


2
3
4
5
6
7
8
# File 'app/models/illumina_c/qc_pool_purpose.rb', line 2

def transition_to(tube, state, _user, _ = nil, _customer_accepts_responsibility = false)
  ActiveRecord::Base.transaction do
    tube.transfer_requests_as_target.where.not(state: terminated_states).find_each do |request|
      request.transition_to(state)
    end
  end
end