Class: Renalware::Patients::WorryboardController

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

Instance Method Summary collapse

Methods inherited from BaseController

#patient

Instance Method Details

#showObject



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

def show
  authorize Worry, :index?
  query = WorryQuery.new(query_params)
  worries = query.call.page(page).per(per_page)
  render locals: {
    query: query.search,
    worries: worries,
    modalities: Modalities::Description.order(:name)
  }
end