Sha256: 45c48dc3fa4f9de758df7b7e009b7d6a2c1bd3b6b55b1dddf3cefeb5ddf27cfb

Contents?: true

Size: 720 Bytes

Versions: 15

Compression:

Stored size: 720 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(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

15 entries across 15 versions & 1 rubygems

Version Path
renalware-core-2.1.1 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.1.0 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.167 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.166 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.165 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.164 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.163 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.162 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.161 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.160 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.159 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.158 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.157 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.156 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.155 app/controllers/renalware/hd/historical_profiles_controller.rb