Module: ModelExtensions::SampleTube

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

Overview

TODO:

Rails relationships should be moved to SampleTube

Included in SampleTube The intent of this file was to provide methods specific to the V1 API

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



6
7
8
# File 'app/api/model_extensions/sample_tube.rb', line 6

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