diff options
author | José Valim <jose.valim@gmail.com> | 2010-06-21 01:08:50 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-06-21 01:08:50 +0200 |
commit | f81666698b703be69607a8ce1abb7d2347ea3667 (patch) | |
tree | 2c04331d798f760a7b380c7fecde92c4f3ee9321 | |
parent | 746a3856782293b7b81706498ebaf58b51da294e (diff) | |
download | rails-f81666698b703be69607a8ce1abb7d2347ea3667.tar.gz rails-f81666698b703be69607a8ce1abb7d2347ea3667.tar.bz2 rails-f81666698b703be69607a8ce1abb7d2347ea3667.zip |
Alias app to build_middleware_stack for clarity.
-rw-r--r-- | railties/lib/rails/application.rb | 1 | ||||
-rw-r--r-- | railties/lib/rails/application/finisher.rb | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/railties/lib/rails/application.rb b/railties/lib/rails/application.rb index 8b8ef20b1f..eca6802297 100644 --- a/railties/lib/rails/application.rb +++ b/railties/lib/rails/application.rb @@ -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)) diff --git a/railties/lib/rails/application/finisher.rb b/railties/lib/rails/application/finisher.rb index d7ff489336..11a3329de6 100644 --- a/railties/lib/rails/application/finisher.rb +++ b/railties/lib/rails/application/finisher.rb @@ -32,7 +32,7 @@ module Rails end initializer :build_middleware_stack do - app + build_middleware_stack end initializer :eager_load! do |