sanger/limber

View on GitHub
app/controllers/plates/work_completions_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

# Handles the clicking of the 'Charge and Pass Libraries' button for plates
# @see WorkCompletionBehaviour::create
class Plates::WorkCompletionsController < ApplicationController
  include WorkCompletionBehaviour

  before_action :check_for_current_user!

  def labware
    @labware ||= Sequencescape::Api::V2.plate_for_completion(params[:limber_plate_id])
  end
end