Module: StudyType::Associations

Defined in:
app/models/study_type.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object


21
22
23
24
# File 'app/models/study_type.rb', line 21

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