File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ class ErrorApp
3131 attr_reader :root
3232
3333 def initialize ( root = nil )
34- if defined? ( ::Rack ::File ) && root . is_a? ( ::Rack ::File )
34+ if defined? ( ::Rack ::Files ) && root . is_a? ( ::Rack ::Files )
3535 @root = root . root # backwards compatibility
3636 else
3737 @root = root . nil? ? JRuby ::Rack . public_path : root
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ class Rails
1111 def initialize ( options = { } )
1212 @root = options [ :root ] || Dir . pwd
1313 @public = options [ :public ] || ::File . join ( @root , "public" )
14- @file_server = Rack ::File . new ( @public )
14+ @file_server = Rack ::Files . new ( @public )
1515 if defined? ( ActionController ::Dispatcher . middleware )
1616 @dispatcher = ActionController ::Dispatcher . new
1717 else
You can’t perform that action at this time.
0 commit comments