sanger/sequencescape

View on GitHub
app/api/model_extensions/sample_tube.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true
# Included in {SampleTube}
# The intent of this file was to provide methods specific to the V1 API
# @todo Rails relationships should be moved to SampleTube
module ModelExtensions::SampleTube
  def self.included(base)
    base.class_eval { has_many :library_tubes, through: :links_as_parent, source: :descendant, validate: false }
  end
end