Sha256: 45c48dc3fa4f9de758df7b7e009b7d6a2c1bd3b6b55b1dddf3cefeb5ddf27cfb
Contents?: true
Size: 720 Bytes
Versions: 15
Compression:
Stored size: 720 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(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
15 entries across 15 versions & 1 rubygems