Sha256: dfcb7f053dbe97c3413e0ed1e6c7efd143ecfb8b491687a4ac1b81d79e69efa8
Contents?: true
Size: 697 Bytes
Versions: 35
Compression:
Stored size: 697 Bytes
Contents
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
35 entries across 35 versions & 1 rubygems