diff --git a/example/adapter.rb b/example/adapter.rb index 77375fdf..4a2e7e5a 100644 --- a/example/adapter.rb +++ b/example/adapter.rb @@ -20,7 +20,7 @@ def call(env) run SimpleAdapter.new end map '/files' do - run Rack::File.new('.') + run Rack::Files.new('.') end end diff --git a/lib/rack/adapter/loader.rb b/lib/rack/adapter/loader.rb index 4574f284..60572c50 100644 --- a/lib/rack/adapter/loader.rb +++ b/lib/rack/adapter/loader.rb @@ -64,7 +64,7 @@ def self.for(name, options={}) return Merb::Rack::Application.new when :file - return Rack::File.new(options[:chdir]) + return Rack::Files.new(options[:chdir]) else raise AdapterNotFound, "Adapter not found: #{name}" diff --git a/lib/rack/adapter/rails.rb b/lib/rack/adapter/rails.rb index 0da1b98b..31113e20 100644 --- a/lib/rack/adapter/rails.rb +++ b/lib/rack/adapter/rails.rb @@ -23,7 +23,7 @@ def initialize(options = {}) load_application @rails_app = self.class.rack_based? ? ActionController::Dispatcher.new : CgiApp.new - @file_app = Rack::File.new(::File.join(RAILS_ROOT, "public")) + @file_app = Rack::Files.new(::File.join(RAILS_ROOT, "public")) end def load_application