Please sign in to comment.
config.ru uses the effective Rack app
We used to pass the Rails::Application subclass to #run. The Rails server then called #to_app to convert that class to the actual Rack application. if you surround `#run` with a call to `#map` the server no longer convertes the class to the instance and we end up with unnecessary delegation calls on every request.
- Loading branch information...
Showing with 2 additions and 1 deletion.
|@@ -1,4 +1,4 @@|
|# This file is used by Rack-based servers to start the application.|
|require ::File.expand_path('../config/environment', __FILE__)|
|-run <%= app_const %>|