Sha256: e11d5e44d3c3a0a4fb5feb6393a17f18365ed275616ace4784f35a162aba6104

Contents?: true

Size: 385 Bytes

Versions: 8

Compression:

Stored size: 385 Bytes

Contents

require_dependency "renalware/transplants"

module Renalware
  module Transplants
    class BaseController < Renalware::BaseController

      def patient
        @transplant_patient ||= Renalware::Transplants.cast_patient(super)
      end

      private

      def load_patient
        super
        @patient = Renalware::Transplants.cast_patient(@patient)
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.beta11 app/controllers/renalware/transplants/base_controller.rb
renalware-core-2.0.0.pre.beta10 app/controllers/renalware/transplants/base_controller.rb
renalware-core-2.0.0.pre.beta9 app/controllers/renalware/transplants/base_controller.rb
renalware-core-2.0.0.pre.beta8 app/controllers/renalware/transplants/base_controller.rb
renalware-core-2.0.0.pre.beta7 app/controllers/renalware/transplants/base_controller.rb
renalware-core-2.0.0.pre.beta6 app/controllers/renalware/transplants/base_controller.rb
renalware-core-2.0.0.pre.beta5 app/controllers/renalware/transplants/base_controller.rb
renalware-core-2.0.0.pre.beta4 app/controllers/renalware/transplants/base_controller.rb