Skip to content

Commit

Permalink
Use the Rack release version to require the appropriate part of Rack
Browse files Browse the repository at this point in the history
  • Loading branch information
czj committed Nov 16, 2023
1 parent 504ca94 commit 1fd5292
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/flipper/ui/actions/file.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
require 'rack/file'
if Rack.release >= "2.1"
require 'rack/files'
else
require 'rack/file'
end
require 'flipper/ui/action'

module Flipper
Expand Down

0 comments on commit 1fd5292

Please sign in to comment.