sanger/sequencescape

View on GitHub
app/models/asset/shared_library_tube_behaviour.rb

Summary

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

# Included in {LibraryTube} and {MultiplexedLibraryTube}
module Asset::SharedLibraryTubeBehaviour
  extend ActiveSupport::Concern

  included do
    include Asset::ApplyIdToNameOnCreate

    self.sequenceable = true
  end

  def library_source_plates
    purpose.try(:library_source_plates, self) || []
  end
end