Sha256: 253e9bb84f33380934c13f9b7b203f82c713d4e0aa82cc5ccb7618cfa18a8957
Contents?: true
Size: 679 Bytes
Versions: 27
Compression:
Stored size: 679 Bytes
Contents
require_dependency "renalware/events" # This controller is mostly empty - we are using it for mainly routing and to let us # override the events 'new' and 'edit' templates. See the base class for most functionality. module Renalware module Events class SwabsController < EventsController private # Override this because as we probably originated from the clinical profile we want to # go back there when done editing or creating. This does not apply if we were created # from the generic Events list and controller. def return_url session.delete(:return_to) patient_clinical_profile_path(patient) end end end end
Version data entries
27 entries across 27 versions & 1 rubygems