Sha256: b06fcfb9bb195690ab38cede15c853029596a32ccc741aad0a3d500cfcf7126c

Contents?: true

Size: 597 Bytes

Versions: 1

Compression:

Stored size: 597 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

1 entries across 1 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.beta12 app/controllers/renalware/hd/mdm_patients_controller.rb