Closed
Description
ActionController::Serialization caches the serializer discovered in #get_serializer
in @_serializer
. When the render call raises an error and ends up in a rescue_from handler, the serializer is still set to whatever was discovered before the error was raised. This usually prevents the correct error response from being generated.