aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-04-03 08:25:23 +0100
committerChristopher Baines <mail@cbaines.net>2018-04-12 08:30:05 +0100
commit4238b1f3bc88ab2a1d97aa3c4967361c853b4880 (patch)
treed206d3bab16345655f049616c08b5ace4a8def4b
parent9ea06728905df840e8f244f0943f599f725604a7 (diff)
downloadgovuk-mini-environment-admin-4238b1f3bc88ab2a1d97aa3c4967361c853b4880.tar
govuk-mini-environment-admin-4238b1f3bc88ab2a1d97aa3c4967361c853b4880.tar.gz
Fix a couple of linting issues
-rw-r--r--app/controllers/terraform_http_backend_controller.rb6
-rw-r--r--app/models/backends.rb2
2 files changed, 4 insertions, 4 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
diff --git a/app/models/backends.rb b/app/models/backends.rb
index bafe9e8..0caf8fe 100644
--- a/app/models/backends.rb
+++ b/app/models/backends.rb
@@ -37,7 +37,7 @@ module Backends
end
def self.all
- classes.flat_map { |backend| backend.all }
+ classes.flat_map(&:all)
end
def self.find_by_type_and_id(type_and_id)