1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fixing Rails::Server#app under Rack::URLMap

This commit is contained in:
Guillermo Iguaran 2011-06-06 15:56:41 -05:00
parent 72cca79d36
commit 8496be7e11
2 changed files with 5 additions and 1 deletions

View file

@ -138,6 +138,10 @@ module Rails
@config ||= Application::Configuration.new(find_root_with_flag("config.ru", Dir.pwd)) @config ||= Application::Configuration.new(find_root_with_flag("config.ru", Dir.pwd))
end end
def to_app
self
end
protected protected
alias :build_middleware_stack :app alias :build_middleware_stack :app

View file

@ -43,7 +43,7 @@ module Rails
end end
def app def app
@app ||= super.instance @app ||= super.respond_to?(:to_app) ? super.to_app : super
end end
def opt_parser def opt_parser