Sha256: 5b2564616ebf161bbcd623bbebafa17d3a330dbad1c7033af75c0dd43968501e
Contents?: true
Size: 710 Bytes
Versions: 142
Compression:
Stored size: 710 Bytes
Contents
# frozen_string_literal: true 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
142 entries across 142 versions & 1 rubygems