Class: Renalware::Transplants::WaitListsController

Inherits:
BaseController show all
Includes:
Concerns::Pageable
Defined in:
app/controllers/renalware/transplants/wait_lists_controller.rb

Instance Method Summary collapse

Methods inherited from BaseController

#patient

Methods inherited from BaseController

#patient

Instance Method Details

#showObject



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

def show
  registrations = query.call.page(page).per(per_page || 50)
  authorize registrations
  render locals: {
    path_params: path_params,
    registrations: CollectionPresenter.new(registrations, WaitListRegistrationPresenter),
    q: query.search
  }
end