aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/dispatch/callbacks_test.rb
diff options
context:
space:
mode:
authorGenadi Samokovarov <gsamokovarov@gmail.com>2016-02-24 23:19:57 +0200
committerGenadi Samokovarov <gsamokovarov@gmail.com>2018-04-20 14:55:37 +0300
commitd25fba89d49bf741de6d7dfa857afcc61468b815 (patch)
treea4f60efac23ce6fbefc81dabe9c14e2ed9b8e7ea /actionpack/test/dispatch/callbacks_test.rb
parent1694b02909850c9d8f47fb644e98e1203d9f2898 (diff)
downloadrails-d25fba89d49bf741de6d7dfa857afcc61468b815.tar.gz
rails-d25fba89d49bf741de6d7dfa857afcc61468b815.tar.bz2
rails-d25fba89d49bf741de6d7dfa857afcc61468b815.zip
Introduce ActionDispatch::DebugExceptions interceptors
Plugins interacting with the exceptions caught and displayed by ActionDispatch::DebugExceptions currently have to monkey patch it to get the much needed exception for their calculation. With DebugExceptions.register_interceptor, plugin authors can hook into DebugExceptions and process the exception, before being rendered. They can store it into the request and process it on the way back of the middleware chain execution or act on it straight in the interceptor. The interceptors can be play blocks, procs, lambdas or any object that responds to `#call`.
Diffstat (limited to 'actionpack/test/dispatch/callbacks_test.rb')
0 files changed, 0 insertions, 0 deletions