From d4bf3ff6d104bec1a3fe8b315d48e5ab91c575a8 Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Sat, 21 Jan 2023 05:31:41 +1300 Subject: [PATCH] Rack deprecated `Rack::File` and replaced it with `Rack::Files`. --- actionpack/lib/action_dispatch/middleware/static.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actionpack/lib/action_dispatch/middleware/static.rb b/actionpack/lib/action_dispatch/middleware/static.rb index 099df5c04ce99..12b316a726a64 100644 --- a/actionpack/lib/action_dispatch/middleware/static.rb +++ b/actionpack/lib/action_dispatch/middleware/static.rb @@ -53,7 +53,7 @@ def initialize(root, index: "index", headers: {}, precompressed: %i[ br gzip ], @precompressed = Array(precompressed).map(&:to_s) | %w[ identity ] @compressible_content_types = compressible_content_types - @file_server = ::Rack::File.new(@root, headers) + @file_server = ::Rack::Files.new(@root, headers) end def call(env)