Class: Renalware::HD::UnmetPreferencesController

Inherits:
BaseController show all
Includes:
PresenterHelper
Defined in:
app/controllers/renalware/hd/unmet_preferences_controller.rb

Instance Method Summary collapse

Methods included from PresenterHelper

#present

Methods inherited from BaseController

#patient

Instance Method Details

#indexObject



10
11
12
13
14
15
16
17
18
# File 'app/controllers/renalware/hd/unmet_preferences_controller.rb', line 10

def index
  query = PatientsWithUnmetPreferencesQuery.new(query_params)
  patients = query.call.page(params[:page])
  authorize(patients)
  render locals: {
    query: query.search,
    patients: present(patients, UnmetPreferencesPresenter)
  }
end