Merge pull request #1527 from guilleiguaran/3-1-stable

Rails::Server#app should be nice with Rack::URLMap (3.1 stable)
This commit is contained in:
José Valim
2011-06-07 09:41:57 -07:00
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))
end
def to_app
self
end
protected
alias :build_middleware_stack :app

View File

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