Class: Renalware::Clinical::AllergyStatusesController
- Inherits:
-
BaseController
- Object
- ApplicationController
- ApplicationController
- BaseController
- BaseController
- Renalware::Clinical::AllergyStatusesController
- Defined in:
- app/controllers/renalware/clinical/allergy_statuses_controller.rb
Instance Method Summary collapse
Methods inherited from BaseController
Methods inherited from BaseController
Instance Method Details
#update ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'app/controllers/renalware/clinical/allergy_statuses_controller.rb', line 8 def update 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 |