Skip to content

rescue_from handler fails with AMS #917

Closed
@ryansch

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.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions