Sha256: dfcb7f053dbe97c3413e0ed1e6c7efd143ecfb8b491687a4ac1b81d79e69efa8

Contents?: true

Size: 697 Bytes

Versions: 35

Compression:

Stored size: 697 Bytes

Contents

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

35 entries across 35 versions & 1 rubygems

Version Path
renalware-core-2.0.16 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.15 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.14 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.13 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.12 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.11 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.9 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.8 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.7 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.5 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.4 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.3 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.2 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.1 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.0 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.0.pre.rc13 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.0.pre.rc11 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.0.pre.rc10 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.0.pre.rc9 app/controllers/renalware/hd/historical_profiles_controller.rb
renalware-core-2.0.0.pre.rc8 app/controllers/renalware/hd/historical_profiles_controller.rb