# File lib/rack/adapter/rails.rb, line 18 def initialize(options={}) @root = options[:root] || Dir.pwd @env = options[:environment] || 'development' @prefix = options[:prefix] load_application @rails_app = if self.class.rack_based? ActionController::Dispatcher.new else CgiApp.new end @file_app = Rack::File.new(::File.join(RAILS_ROOT, "public")) end