Skip to content

Commit

Permalink
Do not deprecate Rack::File
Browse files Browse the repository at this point in the history
Rack 2.0 don't define Rack::Files so in order to remove this deprecation
warning and keep applications and librariesworking with rack 2.0 we
would need to add conditionals to the code.

Lets delay this deprecation until rack 3.0 or rack 2.2.
  • Loading branch information
rafaelfranca committed Jan 10, 2020
1 parent 04f541b commit 327a865
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/rack/file.rb
Expand Up @@ -3,6 +3,5 @@
require 'rack/files'

module Rack
warn "Rack::File is deprecated, please use Rack::Files instead."
File = Files
end

0 comments on commit 327a865

Please sign in to comment.