Module: StudyType::Associations

Defined in:
app/models/study_type.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



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

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