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.45 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.44 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.43 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.42 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.41 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.40 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.39 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.38 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.37 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.36 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.35 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.34 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.33 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.32 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.31 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.30 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.28 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.27 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.26 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.25 app/controllers/renalware/hd/historical_profiles_controller.rb