diff options
author | Genadi Samokovarov <gsamokovarov@gmail.com> | 2016-02-24 23:19:57 +0200 |
---|---|---|
committer | Genadi Samokovarov <gsamokovarov@gmail.com> | 2018-04-20 14:55:37 +0300 |
commit | d25fba89d49bf741de6d7dfa857afcc61468b815 (patch) | |
tree | a4f60efac23ce6fbefc81dabe9c14e2ed9b8e7ea /actionpack/lib/action_dispatch/http | |
parent | 1694b02909850c9d8f47fb644e98e1203d9f2898 (diff) | |
download | rails-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/lib/action_dispatch/http')
0 files changed, 0 insertions, 0 deletions