We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e08d076 + 4521c2a commit 6493defCopy full SHA for 6493def
2 files changed
src/main/ruby/jruby/rack/error_app.rb
@@ -31,7 +31,7 @@ class ErrorApp
31
attr_reader :root
32
33
def initialize(root = nil)
34
- if defined?(::Rack::File) && root.is_a?(::Rack::File)
+ if defined?(::Rack::Files) && root.is_a?(::Rack::Files)
35
@root = root.root # backwards compatibility
36
else
37
@root = root.nil? ? JRuby::Rack.public_path : root
src/main/ruby/rack/adapter/rails.rb
@@ -11,7 +11,7 @@ class Rails
11
def initialize(options={})
12
@root = options[:root] || Dir.pwd
13
@public = options[:public] || ::File.join(@root, "public")
14
- @file_server = Rack::File.new(@public)
+ @file_server = Rack::Files.new(@public)
15
if defined?(ActionController::Dispatcher.middleware)
16
@dispatcher = ActionController::Dispatcher.new
17
0 commit comments