Sha256: 913045763ca44ad3f3e7f17b83352e3e8ff2c125db4b943bcf55ac75c6815ed3

Contents?: true

Size: 728 Bytes

Versions: 127

Compression:

Stored size: 728 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_by!(id: 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

127 entries across 127 versions & 1 rubygems

Version Path
renalware-core-2.0.153 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.152 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.151 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.149 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.148 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.147 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.146 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.145 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.144 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.143 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.142 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.141 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.140 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.139 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.138 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.137 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.136 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.135 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.134 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.133 app/controllers/renalware/hd/historical_profiles_controller.rb