mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Alias app to build_middleware_stack for clarity.
This commit is contained in:
parent
746a385678
commit
f81666698b
2 changed files with 2 additions and 1 deletions
|
@ -160,6 +160,7 @@ module Rails
|
|||
config.middleware.build(routes)
|
||||
end
|
||||
end
|
||||
alias :build_middleware_stack :app
|
||||
|
||||
def call(env)
|
||||
app.call(env.reverse_merge!(env_defaults))
|
||||
|
|
|
@ -32,7 +32,7 @@ module Rails
|
|||
end
|
||||
|
||||
initializer :build_middleware_stack do
|
||||
app
|
||||
build_middleware_stack
|
||||
end
|
||||
|
||||
initializer :eager_load! do
|
||||
|
|
Loading…
Reference in a new issue