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:
parent
72cca79d36
commit
8496be7e11
2 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue