sanger/limber

View on GitHub
app/controllers/tubes/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 tubes
# @see WorkCompletionBehaviour::create
class Tubes::WorkCompletionsController < ApplicationController
  include WorkCompletionBehaviour

  before_action :check_for_current_user!

  def labware
    @labware ||= api.tube.find(params[:limber_tube_id])
  end
end