Module: PatientChild

Overview

This module is included by models that represent a subsection of a patient record.

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



5
6
7
8
9
10
# File 'lib/patient_child.rb', line 5

def self.included(base)
  base.class_eval do
    belongs_to :patient
    after_save { |r| r.patient.update_attributes(:updated_at => DateTime.now) }
  end
end