Class: Renalware::PD::PETCompletionsController
- Inherits:
-
BaseController
- Object
- ApplicationController
- ApplicationController
- BaseController
- BaseController
- Renalware::PD::PETCompletionsController
- Includes:
- Pagy::Backend
- Defined in:
- app/controllers/renalware/pd/pet_completions_controller.rb
Instance Method Summary collapse
Methods inherited from BaseController
Instance Method Details
#index ⇒ Object
10 11 12 13 14 15 |
# File 'app/controllers/renalware/pd/pet_completions_controller.rb', line 10 def index query = PETResult.joins(:patient).order(performed_on: :desc).ransack(params[:q]) pagy, results = pagy(query.result) results render locals: { pagination: pagy, results: results, query: query } end |