Sha256: 4f88164c3063fafb7aaefb37a58d162dd3b4c81289d4342b87f520eeb21504c0
Contents?: true
Size: 680 Bytes
Versions: 8
Compression:
Stored size: 680 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
8 entries across 8 versions & 1 rubygems