Fix all Style/HashSyntax rubocop issues and remove from rubocop_todo list
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user