Module: ModelExtensions::SampleManifest
- Included in:
- SampleManifest
- Defined in:
- app/api/model_extensions/sample_manifest.rb
Overview
Included in SampleManifest The intent of this file was to provide methods specific to the V1 API
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'app/api/model_extensions/sample_manifest.rb', line 5 def self.included(base) base.class_eval do scope :include_samples, -> do includes( samples: [ :uuid_object, { sample_metadata: :reference_genome, primary_study: { study_metadata: :reference_genome } } ] ) end delegate :io_samples, to: :core_behaviour end end |