aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-02-09 08:38:33 -0700
committerJosé Valim <jose.valim@gmail.com>2010-02-09 08:38:33 -0700
commitea8f9880c446e46952148d5ed770258674f88949 (patch)
tree38eb7e5fc4d96b942708d3026b11892fb267856e /actionpack
parent50b3040115a386acb5e68235c46c7227a47e3d7b (diff)
downloadrails-ea8f9880c446e46952148d5ed770258674f88949.tar.gz
rails-ea8f9880c446e46952148d5ed770258674f88949.tar.bz2
rails-ea8f9880c446e46952148d5ed770258674f88949.zip
Remove outdated docs.
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_dispatch/middleware/show_exceptions.rb14
1 files changed, 0 insertions, 14 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/show_exceptions.rb b/actionpack/lib/action_dispatch/middleware/show_exceptions.rb
index 3bcd004e12..43440e5f7c 100644
--- a/actionpack/lib/action_dispatch/middleware/show_exceptions.rb
+++ b/actionpack/lib/action_dispatch/middleware/show_exceptions.rb
@@ -5,20 +5,6 @@ require 'action_dispatch/http/request'
module ActionDispatch
# This middleware rescues any exception returned by the application and renders
# nice exception pages if it's being rescued locally.
- #
- # Every time an exception is caught, a notification is published, becoming a good API
- # to deal with exceptions. So, if you want send an e-mail through ActionMailer
- # everytime this notification is published, you just need to do the following:
- #
- # ActiveSupport::Notifications.subscribe "action_dispatch.show_exception" do |name, start, end, instrumentation_id, payload|
- # ExceptionNotifier.deliver_exception(start, payload)
- # end
- #
- # The payload is a hash which has two pairs:
- #
- # * :env - Contains the rack env for the given request;
- # * :exception - The exception raised;
- #
class ShowExceptions
LOCALHOST = ['127.0.0.1', '::1'].freeze