Module: ModelExtensions::Study

Included in:
Study
Defined in:
app/api/model_extensions/study.rb

Overview

Included in Study 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
# File 'app/api/model_extensions/study.rb', line 5

def self.included(base)
  base.class_eval do
    scope :include_samples, -> { includes(:samples) }
    scope :include_projects, -> { includes(:projects) }
  end
end