app/controllers/panoptic/jobs_controller.rb in panoptic-0.1.2 vs app/controllers/panoptic/jobs_controller.rb in panoptic-0.1.3

- old
+ new

@@ -1,9 +1,11 @@ # frozen_string_literal: true module Panoptic class JobsController < ApplicationController + include Pagy::Backend + def index - @jobs = SolidQueue::Job.order(created_at: :asc).page(params[:page]) + @pagy, @jobs = pagy(SolidQueue::Job.order(created_at: :asc)) end end end