sanger/limber

View on GitHub
app/models/concerns/presenters/stock_behaviour.rb

Summary

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

# Include in a presenter which handle stock plates
module Presenters::StockBehaviour
  extend ActiveSupport::Concern
  include Presenters::StateChangeless

  included { validates_with Validators::StockStateValidator, if: :pending? }

  def input_barcode
    barcode
  end
end