Class: Renalware::HD::UnmetPreferencesController
- Inherits:
-
BaseController
- Object
- ApplicationController
- ApplicationController
- BaseController
- BaseController
- Renalware::HD::UnmetPreferencesController
- Includes:
- PresenterHelper
- Defined in:
- app/controllers/renalware/hd/unmet_preferences_controller.rb
Instance Method Summary collapse
Methods included from PresenterHelper
Methods inherited from BaseController
Instance Method Details
#index ⇒ Object
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]) (patients) render locals: { query: query.search, patients: present(patients, UnmetPreferencesPresenter) } end |