aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-12-16 09:29:37 +0100
committerJosé Valim <jose.valim@gmail.com>2011-12-16 10:45:59 +0100
commitdeef8dd68241cdb9826a2293bced5e2257ccea90 (patch)
tree08240789fde8372129737f2ef0f710ff9b9a9a44 /railties
parentd1425725673b0172d6561adebaed017b51db9333 (diff)
downloadrails-deef8dd68241cdb9826a2293bced5e2257ccea90.tar.gz
rails-deef8dd68241cdb9826a2293bced5e2257ccea90.tar.bz2
rails-deef8dd68241cdb9826a2293bced5e2257ccea90.zip
Extract the rendering of public exceptions pages into a Rack app.
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/application.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/application.rb b/railties/lib/rails/application.rb
index 56d11d0b01..54612755b4 100644
--- a/railties/lib/rails/application.rb
+++ b/railties/lib/rails/application.rb
@@ -244,7 +244,7 @@ module Rails
middleware.use ::Rack::MethodOverride
middleware.use ::ActionDispatch::RequestId
middleware.use ::Rails::Rack::Logger, config.log_tags # must come after Rack::MethodOverride to properly log overridden methods
- middleware.use ::ActionDispatch::ShowExceptions
+ middleware.use ::ActionDispatch::ShowExceptions, ActionDispatch::PublicExceptions.new(Rails.public_path)
middleware.use ::ActionDispatch::DebugExceptions
middleware.use ::ActionDispatch::RemoteIp, config.action_dispatch.ip_spoofing_check, config.action_dispatch.trusted_proxies