Sha256: ae78601702b7138004645e2a5a0bdd343be8a6a2d5516b8a931738908c1144bf
Contents?: true
Size: 718 Bytes
Versions: 27
Compression:
Stored size: 718 Bytes
Contents
require_dependency "renalware/clinical" module Renalware module Clinical class AllergyStatusesController < Clinical::BaseController 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 private def allergy_status_params params.require(:clinical_allergy_status_form).permit(:no_known_allergies) end end end end
Version data entries
27 entries across 27 versions & 1 rubygems