mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user