Fix all Style/HashSyntax rubocop issues and remove from rubocop_todo list

This commit is contained in:
Bertocq
2017-06-25 16:03:16 +02:00
parent c9bc028524
commit 904e3fdcfa
5 changed files with 19 additions and 15 deletions

View File

@@ -14,10 +14,10 @@ class SandboxController < ApplicationController
def show
if params[:template].index('.') # CVE-2014-0130
render :action => "index"
render action: "index"
elsif lookup_context.exists?("sandbox/#{params[:template]}")
if params[:template] == "index"
render :action => "index"
render action: "index"
else
render "sandbox/#{params[:template]}"
end
@@ -25,7 +25,7 @@ class SandboxController < ApplicationController
elsif lookup_context.exists?("sandbox/#{params[:template]}/index")
render "sandbox/#{params[:template]}/index"
else
render :action => "index"
render action: "index"
end
end