Module: StudyType::Associations

Defined in:
app/models/study_type.rb

Overview

rubocop:todo Style/Documentation

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object


46
47
48
49
# File 'app/models/study_type.rb', line 46

def self.included(base)
  base.validates_presence_of :study_type_id
  base.belongs_to :study_type
end