Sha256: e4c1778692a6cdccd462c4d4fe82052cbc87622c5a7cea84a8e8b78c969a699c

Contents?: true

Size: 569 Bytes

Versions: 14

Compression:

Stored size: 569 Bytes

Contents

require_dependency "renalware/transplants/base_controller"

module Renalware
  module Transplants
    class DonorDashboardsController < BaseController
      before_action :load_patient

      def show
        render locals: {
          patient: patient,
          donations: Donation.for_patient(patient).reversed,
          donor_workup: DonorWorkup.for_patient(patient).first_or_initialize,
          donor_operations: DonorOperation.for_patient(patient).reversed,
          donor_stages: DonorStage.for_patient(patient).ordered
        }
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.rc6 app/controllers/renalware/transplants/donor_dashboards_controller.rb
renalware-core-2.0.0.pre.rc5 app/controllers/renalware/transplants/donor_dashboards_controller.rb
renalware-core-2.0.0.pre.rc4 app/controllers/renalware/transplants/donor_dashboards_controller.rb
renalware-core-2.0.0.pre.rc3 app/controllers/renalware/transplants/donor_dashboards_controller.rb
renalware-core-2.0.0.pre.rc1 app/controllers/renalware/transplants/donor_dashboards_controller.rb
renalware-core-2.0.0.pre.beta12 app/controllers/renalware/transplants/donor_dashboards_controller.rb
renalware-core-2.0.0.pre.beta11 app/controllers/renalware/transplants/donor_dashboards_controller.rb
renalware-core-2.0.0.pre.beta10 app/controllers/renalware/transplants/donor_dashboards_controller.rb
renalware-core-2.0.0.pre.beta9 app/controllers/renalware/transplants/donor_dashboards_controller.rb
renalware-core-2.0.0.pre.beta8 app/controllers/renalware/transplants/donor_dashboards_controller.rb
renalware-core-2.0.0.pre.beta7 app/controllers/renalware/transplants/donor_dashboards_controller.rb
renalware-core-2.0.0.pre.beta6 app/controllers/renalware/transplants/donor_dashboards_controller.rb
renalware-core-2.0.0.pre.beta5 app/controllers/renalware/transplants/donor_dashboards_controller.rb
renalware-core-2.0.0.pre.beta4 app/controllers/renalware/transplants/donor_dashboards_controller.rb