![]() In case of an exception we never reach setting the status in the payload so it is unset afterward. Let's catch the exception and set status based on the exception class name. Then re-raise it. This is basically the equivalent of what happens in ActionController::LogSubscriber.process_action |
||
---|---|---|
.. | ||
abstract_controller | ||
action_controller | ||
action_dispatch | ||
action_pack | ||
abstract_controller.rb | ||
action_controller.rb | ||
action_dispatch.rb | ||
action_pack.rb |