aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-03-30 17:50:49 +0100
committerChristopher Baines <mail@cbaines.net>2018-04-03 21:58:55 +0100
commitd196977deef0edc0f7596d8cd8855fe61f72f6ff (patch)
tree82d0f76d054e5e17fb5ae6bb6aeba773aabd8475
parente4f9457926097a3f399985bb01b7b9c31c10cd1d (diff)
downloadgovuk-mini-environment-admin-d196977deef0edc0f7596d8cd8855fe61f72f6ff.tar
govuk-mini-environment-admin-d196977deef0edc0f7596d8cd8855fe61f72f6ff.tar.gz
Fix the MiniEnvironmentJob destroy
-rw-r--r--app/jobs/mini_environment_job.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/jobs/mini_environment_job.rb b/app/jobs/mini_environment_job.rb
index c5888c3..c18e69a 100644
--- a/app/jobs/mini_environment_job.rb
+++ b/app/jobs/mini_environment_job.rb
@@ -1,9 +1,9 @@
class MiniEnvironmentJob < Que::Job
def run(mini_environment_id, action)
ActiveRecord::Base.transaction do
- mini_environment = MiniEnvironment.find(mini_environment_id)
+ @mini_environment = MiniEnvironment.find(mini_environment_id)
- mini_environment.backend.send(action, mini_environment)
+ @mini_environment.backend.send(action, @mini_environment)
end
end