Sha256: bd1573adabdc400fdb899d4cbc8c02cbda0b894690f16e4ac60a255ef60a684a
Contents?: true
Size: 819 Bytes
Versions: 6
Compression:
Stored size: 819 Bytes
Contents
require_dependency "renalware/transplants/base_controller" module Renalware module Transplants class RecipientDashboardsController < BaseController def show authorize patient render locals: locals end private def locals { patient: patient, recipient_workup: RecipientWorkup.for_patient(patient).first_or_initialize, registration: registration_presenter, recipient_operations: RecipientOperation.for_patient(patient).reversed, donations: Donation.for_recipient(patient).reversed } end def registration_presenter WaitListRegistrationPresenter.new(registration) end def registration Registration.for_patient(patient).first_or_initialize end end end end
Version data entries
6 entries across 6 versions & 1 rubygems