Module: PipelinesHelper

Included in:
Presenters::GroupLinePresenter
Defined in:
app/helpers/pipelines_helper.rb

Instance Method Summary collapse

Instance Method Details

#fluidigm_target?(batch) ⇒ Boolean


9
10
11
# File 'app/helpers/pipelines_helper.rb', line 9

def fluidigm_target?(batch)
  batch.requests.where_is_a(CherrypickForFluidigmRequest).present?
end

#target_purpose_for(request) ⇒ Object


2
3
4
5
6
7
# File 'app/helpers/pipelines_helper.rb', line 2

def target_purpose_for(request)
  nrs = request.next_requests
  return nrs.first.request_type.acceptable_plate_purposes.pluck(:name).join('|') unless nrs.empty?

  request.target_purpose.try(:name) || 'Not specified'
end