diff options
author | Christopher Baines <mail@cbaines.net> | 2018-03-30 17:50:49 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-04-03 21:58:55 +0100 |
commit | d196977deef0edc0f7596d8cd8855fe61f72f6ff (patch) | |
tree | 82d0f76d054e5e17fb5ae6bb6aeba773aabd8475 /app | |
parent | e4f9457926097a3f399985bb01b7b9c31c10cd1d (diff) | |
download | govuk-mini-environment-admin-d196977deef0edc0f7596d8cd8855fe61f72f6ff.tar govuk-mini-environment-admin-d196977deef0edc0f7596d8cd8855fe61f72f6ff.tar.gz |
Fix the MiniEnvironmentJob destroy
Diffstat (limited to 'app')
-rw-r--r-- | app/jobs/mini_environment_job.rb | 4 |
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 |