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.132 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.131 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.130 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.129 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.128 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.127 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.126 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.125 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.124 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.123 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.121 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.120 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.119 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.118 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.117 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.116 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.115 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.113 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.112 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.111 app/controllers/renalware/hd/historical_profiles_controller.rb