aboutsummaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-07-01 09:10:48 +0100
committerChristopher Baines <mail@cbaines.net>2018-07-01 09:10:48 +0100
commitafd83a42629ab865d1338c823dd04556c00e52cf (patch)
tree984e840ae4a1176687d1f382eae8581b77792b1b /app/controllers
parent5ba97ad556728c5a74aa86b1d18b98f4ad5e38a9 (diff)
downloadgovuk-mini-environment-admin-afd83a42629ab865d1338c823dd04556c00e52cf.tar
govuk-mini-environment-admin-afd83a42629ab865d1338c823dd04556c00e52cf.tar.gz
Add a really basic que_jobs index pagerelease_3
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/que_jobs_controller.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/que_jobs_controller.rb b/app/controllers/que_jobs_controller.rb
index 36d5558..a4607d9 100644
--- a/app/controllers/que_jobs_controller.rb
+++ b/app/controllers/que_jobs_controller.rb
@@ -19,6 +19,10 @@
# <http://www.gnu.org/licenses/>.
class QueJobsController < ApplicationController
+ def index
+ @jobs = QueJob.order(id: :desc)
+ end
+
def cancel
Que.execute :expire_job, [job_id]