Module: ModelExtensions::SampleTube

Included in:
SampleTube
Defined in:
app/api/model_extensions/sample_tube.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object


2
3
4
5
6
# File 'app/api/model_extensions/sample_tube.rb', line 2

def self.included(base)
  base.class_eval do
    has_many :library_tubes, through: :links_as_parent, source: :descendant, validate: false
  end
end