Skip to content

Commit

Permalink
Use rack/files instead of rack/file
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Jun 25, 2024
1 parent 3c401e6 commit 812590f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tdiary/rack/static.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
require 'rack/file'
require 'rack/files'

module TDiary
module Rack
class Static
def initialize( app, base_dir )
@app = app
@file = base_dir.map{|dir| ::Rack::File.new(dir) }
@file = base_dir.map{|dir| ::Rack::Files.new(dir) }
end

def call( env )
Expand Down

0 comments on commit 812590f

Please sign in to comment.