Sha256: 913045763ca44ad3f3e7f17b83352e3e8ff2c125db4b943bcf55ac75c6815ed3
Contents?: true
Size: 728 Bytes
Versions: 127
Compression:
Stored size: 728 Bytes
Contents
# frozen_string_literal: true require_dependency "renalware/hd/base_controller" require "collection_presenter" module Renalware module HD class HistoricalProfilesController < BaseController include PresenterHelper def show profile = Profile.deleted.for_patient(patient).find_by!(id: params[:id]) authorize profile render locals: { patient: patient, profile: ProfilePresenter.new(profile) } end def index profiles = Profile.deleted.ordered.for_patient(patient) authorize profiles render locals: { patient: patient, profiles: present(profiles, ProfilePresenter) } end end end end
Version data entries
127 entries across 127 versions & 1 rubygems