Sha256: db9c6c608ca7259eacc5e460d80a122da7fee4caf4615d45274eb97e064cf361

Contents?: true

Size: 384 Bytes

Versions: 27

Compression:

Stored size: 384 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

27 entries across 27 versions & 1 rubygems

Version Path
renalware-core-2.0.16 app/controllers/renalware/transplants/base_controller.rb
renalware-core-2.0.15 app/controllers/renalware/transplants/base_controller.rb
renalware-core-2.0.14 app/controllers/renalware/transplants/base_controller.rb
renalware-core-2.0.13 app/controllers/renalware/transplants/base_controller.rb
renalware-core-2.0.12 app/controllers/renalware/transplants/base_controller.rb
renalware-core-2.0.11 app/controllers/renalware/transplants/base_controller.rb
renalware-core-2.0.9 app/controllers/renalware/transplants/base_controller.rb
renalware-core-2.0.8 app/controllers/renalware/transplants/base_controller.rb
renalware-core-2.0.7 app/controllers/renalware/transplants/base_controller.rb
renalware-core-2.0.5 app/controllers/renalware/transplants/base_controller.rb
renalware-core-2.0.4 app/controllers/renalware/transplants/base_controller.rb
renalware-core-2.0.3 app/controllers/renalware/transplants/base_controller.rb
renalware-core-2.0.2 app/controllers/renalware/transplants/base_controller.rb
renalware-core-2.0.1 app/controllers/renalware/transplants/base_controller.rb
renalware-core-2.0.0 app/controllers/renalware/transplants/base_controller.rb
renalware-core-2.0.0.pre.rc13 app/controllers/renalware/transplants/base_controller.rb
renalware-core-2.0.0.pre.rc11 app/controllers/renalware/transplants/base_controller.rb
renalware-core-2.0.0.pre.rc10 app/controllers/renalware/transplants/base_controller.rb
renalware-core-2.0.0.pre.rc9 app/controllers/renalware/transplants/base_controller.rb
renalware-core-2.0.0.pre.rc8 app/controllers/renalware/transplants/base_controller.rb