Class: RushJob::RushJobsController

Inherits:
ApplicationController show all
Includes:
Pagy::Backend, SortHelper
Defined in:
app/controllers/rush_job/rush_jobs_controller.rb

Instance Method Summary collapse

Methods included from SortHelper

#sort_column, #sort_direction

Instance Method Details

#indexObject



8
9
10
11
12
13
14
15
# File 'app/controllers/rush_job/rush_jobs_controller.rb', line 8

def index
  @pagy, @rush_jobs = pagy(RushJob.order("#{sort_column} #{sort_direction}"))

  respond_to do |format|
    format.html
    format.turbo_stream
  end
end