Module: Program::Associations

Defined in:
app/models/program.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object


13
14
15
16
# File 'app/models/program.rb', line 13

def self.included(base)
  base.validates_presence_of :program_id
  base.belongs_to :program
end