1
0
Fork 0
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:
José Valim 2010-06-21 01:08:50 +02:00
parent 746a385678
commit f81666698b
2 changed files with 2 additions and 1 deletions

View file

@ -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))

View file

@ -32,7 +32,7 @@ module Rails
end
initializer :build_middleware_stack do
app
build_middleware_stack
end
initializer :eager_load! do