Module Rack
In: lib/rack/adapter/rails.rb
lib/rack/adapter/loader.rb
lib/thin.rb

Adapter to run a Rails app with any supported Rack handler. By default it will try to load the Rails application in the current directory in the development environment.

Options:

 root: Root directory of the Rails app
 environment: Rails environment to run in (development [default], production or test)
 prefix: Set the relative URL root.

Based on fuzed.rubyforge.org/ Rails adapter

Classes and Modules

Module Rack::Adapter
Class Rack::AdapterNotFound

Constants

ADAPTERS = [ [:rails, 'config/environment.rb'], [:ramaze, 'start.rb'], [:halcyon, 'runner.ru'], [:merb, 'config/init.rb'], [:mack, 'config/app_config/default.yml'], [:mack, 'config/configatron/default.rb'], [:file, nil]   Mapping used to guess which adapter to use in Adapter.for. Framework <name> => <file unique to this framework> in order they will be tested. nil for value to never guess. NOTE: If a framework has a file that is not unique, make sure to place it at the end.

[Validate]