aboutsummaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/terraform_http_backend_controller.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/terraform_http_backend_controller.rb b/app/controllers/terraform_http_backend_controller.rb
index 761cb32..ceff807 100644
--- a/app/controllers/terraform_http_backend_controller.rb
+++ b/app/controllers/terraform_http_backend_controller.rb
@@ -31,9 +31,9 @@ class TerraformHttpBackendController < ApplicationController
end
def show
- state = TerraformState
- .where(mini_environment_id: mini_environment_id)
- .last
+ state = TerraformState.where(
+ mini_environment_id: mini_environment_id
+ ).last
if state.nil?
render json: '{}', status: 404