From f0a20b1a5e6b06853083774d35b79d39821085b7 Mon Sep 17 00:00:00 2001 From: Mike Perham Date: Thu, 25 Mar 2021 16:17:00 -0700 Subject: [PATCH] cleanup --- lib/sidekiq/web.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/sidekiq/web.rb b/lib/sidekiq/web.rb index 06d68df5..0996f9f7 100644 --- a/lib/sidekiq/web.rb +++ b/lib/sidekiq/web.rb @@ -144,11 +144,11 @@ module Sidekiq m = middlewares ::Rack::Builder.new do - use Rack::Static, :urls => ["/stylesheets", "/images", "/javascripts"], - :root => ASSETS, - :cascade => true, - :header_rules => [ - [:all, {'Cache-Control' => 'public, max-age=86400'}], + use Rack::Static, urls: ["/stylesheets", "/images", "/javascripts"], + root: ASSETS, + cascade: true, + header_rules: [ + [:all, {"Cache-Control" => "public, max-age=86400"}] ] m.each { |middleware, block| use(*middleware, &block) } use Sidekiq::Web::CsrfProtection unless $TESTING