Sha256: 69723b5dc80841a736d8edcfc2722ded79ddd9b7014678f30c9b6d0235ec3018

Contents?: true

Size: 598 Bytes

Versions: 8

Compression:

Stored size: 598 Bytes

Contents

module Renalware
  module HD
    class MDMPatientsController < Renalware::MDMPatientsController

      def render_index(**args)
        presenter = build_presenter(params: params, **args)
        authorize presenter.patients
        render :index, locals: { presenter: presenter }
      end

      def index
        render_index(query: MDMPatientsQuery.new(q: params[:q]),
                     page_title: t(".page_title"),
                     view_proc: ->(patient) { patient_hd_mdm_path(patient) },
                     patient_presenter_class: HD::PatientPresenter)
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.beta11 app/controllers/renalware/hd/mdm_patients_controller.rb
renalware-core-2.0.0.pre.beta10 app/controllers/renalware/hd/mdm_patients_controller.rb
renalware-core-2.0.0.pre.beta9 app/controllers/renalware/hd/mdm_patients_controller.rb
renalware-core-2.0.0.pre.beta8 app/controllers/renalware/hd/mdm_patients_controller.rb
renalware-core-2.0.0.pre.beta7 app/controllers/renalware/hd/mdm_patients_controller.rb
renalware-core-2.0.0.pre.beta6 app/controllers/renalware/hd/mdm_patients_controller.rb
renalware-core-2.0.0.pre.beta5 app/controllers/renalware/hd/mdm_patients_controller.rb
renalware-core-2.0.0.pre.beta4 app/controllers/renalware/hd/mdm_patients_controller.rb