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.110 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.109 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.108 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.106 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.105 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.104 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.103 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.102 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.101 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.100 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.99 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.98 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.97 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.96 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.95 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.94 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.93 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.92 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.91 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.90 app/controllers/renalware/hd/historical_profiles_controller.rb