Development

#bug in patient controller

 def patient_count_within_limit 
      if self.hospital && self.hospital.patients.count > self.hospital.patients_count #bug doesn't work if patients.size is used, :patients.size changed to patients.count
    errors.add(:base,"Exceeded no of Patients")
 end
 end