diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2013-07-22 17:19:07 +0200 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2013-07-22 17:19:07 +0200 |
commit | 73bbf548687a3502cc87aaea4484943e65dce053 (patch) | |
tree | 7abb8d8664cbe00175ffa953a8a6f57750dc9820 /railties/lib/rails/application | |
parent | 782d2f6f83c39e9cfd2a8e650250a74c65458f88 (diff) | |
download | rails-73bbf548687a3502cc87aaea4484943e65dce053.tar.gz rails-73bbf548687a3502cc87aaea4484943e65dce053.tar.bz2 rails-73bbf548687a3502cc87aaea4484943e65dce053.zip |
Revert "Match Dev/Prod parity for Index Page"
Showing welcome page in production can expose information, which should
not be visible on production if people don't override the default root
route.
This reverts commit b0caea29c2da9f4c8bb958019813482da297067d.
Diffstat (limited to 'railties/lib/rails/application')
-rw-r--r-- | railties/lib/rails/application/finisher.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/railties/lib/rails/application/finisher.rb b/railties/lib/rails/application/finisher.rb index 1e4c6ca921..7a1bb1e25c 100644 --- a/railties/lib/rails/application/finisher.rb +++ b/railties/lib/rails/application/finisher.rb @@ -25,11 +25,9 @@ module Rails get '/rails/info/properties' => "rails/info#properties" get '/rails/info/routes' => "rails/info#routes" get '/rails/info' => "rails/info#index" + get '/' => "rails/welcome#index" end end - app.routes.append do - get '/' => "rails/welcome#index" - end end initializer :build_middleware_stack do |