aboutsummaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/mini_environments_controller.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/controllers/mini_environments_controller.rb b/app/controllers/mini_environments_controller.rb
index 639ea0a..6f31e70 100644
--- a/app/controllers/mini_environments_controller.rb
+++ b/app/controllers/mini_environments_controller.rb
@@ -78,4 +78,13 @@ class MiniEnvironmentsController < ApplicationController
render 'show'
end
+
+ def jobs
+ [
+ MiniEnvironmentJob.jobs(@mini_environment.id),
+ GovukGuix::BuildJob.jobs(@mini_environment.id)
+ ].flatten
+ end
+
+ helper_method :jobs
end