Page MenuHomeGRNET

No OneTemporary

File Metadata

Created
Thu, Apr 3, 7:42 AM
diff --git a/app/controllers/admin/jobs_controller.rb b/app/controllers/admin/jobs_controller.rb
index 2f59da4..5243ca9 100644
--- a/app/controllers/admin/jobs_controller.rb
+++ b/app/controllers/admin/jobs_controller.rb
@@ -1,22 +1,22 @@
module Admin
class JobsController < ApplicationController
before_action :authenticate_user!
before_action :admin_only!
# GET /jobs
def index
@job_categories = {
- 'Pending' => Job.pending,
- 'Completed' => Job.completed.order('id desc')
+ 'Pending' => Job.includes(:domain).pending,
+ 'Completed' => Job.includes(:domain).completed.order('id desc')
}
end
# DELETE /jobs/1
def destroy
@job = Job.find(params[:id])
@job.destroy
redirect_to admin_jobs_url, notice: "#{@job.id} was successfully destroyed."
end
end
end

Event Timeline