# 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 ActionController::Dispatcher.instance_methods.include?(:call)
          ActionController::Dispatcher.new
        else
          CgiApp.new
        end
        
        @file_app = Rack::File.new(::File.join(RAILS_ROOT, "public"))
      end