app/api/model_extensions/study.rb
# 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