Sha256: 911e1d6279e5c210e7ecfb7385e7e46684dca2717615b9ca220fd0b62a1401e6
Contents?: true
Size: 752 Bytes
Versions: 25
Compression:
Stored size: 752 Bytes
Contents
require_dependency "renalware/hd" 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 query = HD::MDMPatientsQuery.new( relation: HD::Patient.eager_load(hd_profile: [:hospital_unit]), q: params[:q] ) render_index(query: query, 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
25 entries across 25 versions & 1 rubygems