aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/middleware/show_exceptions.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-01-17 11:17:42 +0100
committerJosé Valim <jose.valim@gmail.com>2010-01-17 11:29:51 +0100
commit0334f9f6cfa4c4c746de7e19250a13366b616c55 (patch)
tree9e2ff5d7efac90c26f3256d26d0789c14424ab7e /actionpack/lib/action_dispatch/middleware/show_exceptions.rb
parentafd0c06dfa8d3e04e85f9f0ea65c9beb376cb79f (diff)
downloadrails-0334f9f6cfa4c4c746de7e19250a13366b616c55.tar.gz
rails-0334f9f6cfa4c4c746de7e19250a13366b616c55.tar.bz2
rails-0334f9f6cfa4c4c746de7e19250a13366b616c55.zip
Add ActionDispatch::Notifications middleware.
Diffstat (limited to 'actionpack/lib/action_dispatch/middleware/show_exceptions.rb')
-rw-r--r--actionpack/lib/action_dispatch/middleware/show_exceptions.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/show_exceptions.rb b/actionpack/lib/action_dispatch/middleware/show_exceptions.rb
index 56fd4f45c0..0977f5c60a 100644
--- a/actionpack/lib/action_dispatch/middleware/show_exceptions.rb
+++ b/actionpack/lib/action_dispatch/middleware/show_exceptions.rb
@@ -61,11 +61,8 @@ module ActionDispatch
def call(env)
@app.call(env)
rescue Exception => exception
- ActiveSupport::Notifications.instrument 'action_dispatch.show_exception',
- :env => env, :exception => exception do
- raise exception if env['action_dispatch.show_exceptions'] == false
- render_exception(env, exception)
- end
+ raise exception if env['action_dispatch.show_exceptions'] == false
+ render_exception(env, exception)
end
private