Class: Renalware::Clinical::AllergyStatusesController

Inherits:
BaseController show all
Defined in:
app/controllers/renalware/clinical/allergy_statuses_controller.rb

Instance Method Summary collapse

Methods inherited from BaseController

#patient

Methods inherited from BaseController

#patient

Instance Method Details

#updateObject



8
9
10
11
12
13
14
15
16
17
18
# File 'app/controllers/renalware/clinical/allergy_statuses_controller.rb', line 8

def update
  authorize patient
  form = AllergyStatusForm.new(allergy_status_params)
  if form.save(patient, current_user)
    redirect_back fallback_location: patient_clinical_profile_path(patient),
                  notice: "Allergy status updated"
  else
    # we use client-side validation so will not get here
    raise NotImplementedError
  end
end