From 24d78d23c037e790eff3ec7720eceae485204931 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Mon, 26 Mar 2018 21:20:38 +0100 Subject: Fix Rubocop issues --- app/controllers/mini_environments_controller.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/controllers/mini_environments_controller.rb b/app/controllers/mini_environments_controller.rb index d845787..ba4c53b 100644 --- a/app/controllers/mini_environments_controller.rb +++ b/app/controllers/mini_environments_controller.rb @@ -12,11 +12,11 @@ class MiniEnvironmentsController < ApplicationController :mini_environment ).permit( :name, - :govuk_guix_revision_id, + :govuk_guix_revision_id ) logger.error(parameters) - + @mini_environment = MiniEnvironment.new(parameters) @mini_environment.backend = Backends.find_by_type_and_id( params.require(:mini_environment).fetch(:backend) @@ -24,7 +24,7 @@ class MiniEnvironmentsController < ApplicationController @mini_environment.save! @mini_environment.backend.build(@mini_environment) - + redirect_to @mini_environment end @@ -32,16 +32,16 @@ class MiniEnvironmentsController < ApplicationController @mini_environment = MiniEnvironment.find(params[:mini_environment_id]) action = params.require(:commit) - + case action when 'Destroy' MiniEnvironmentJob.enqueue(@mini_environment.id, :destroy) - flash[:notice] = "Destroying mini environment" + flash[:notice] = 'Destroying mini environment' when 'Start' MiniEnvironmentJob.enqueue(@mini_environment.id, :start) - flash[:notice] = "Starting mini environment" + flash[:notice] = 'Starting mini environment' else flash[:error] = "Unknown action #{action}" end -- cgit v1.2.3