sanger/sequencescape

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

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true
# Included in {Study}
# The intent of this file was to provide methods specific to the V1 API
module ModelExtensions::Study
  def self.included(base)
    base.class_eval do
      scope :include_samples, -> { includes(:samples) }
      scope :include_projects, -> { includes(:projects) }
    end
  end
end