See
|
def display_errors |
|
# TODO: use `error_status` once we switch the default to be `unprocessable_entity`, |
|
# otherwise we'd be changing this behavior here now. |
|
controller.render format => resource_errors, :status => :unprocessable_entity |
|
end |
With the deprecation of :unprocessable_entity in favor of :unprocessable_content in rack (see rack/rack#2137) I currently need to overwrite the display_errors-method in my app to work around deprecation warnings.
I think the generated default in responders should be updated to unprocessable_content, and it should be applied everywhere. That's a breaking change, so probably requires a minor or major version bump.
See
responders/lib/action_controller/responder.rb
Lines 270 to 274 in 9bdc60d
With the deprecation of
:unprocessable_entityin favor of:unprocessable_contentin rack (see rack/rack#2137) I currently need to overwrite the display_errors-method in my app to work around deprecation warnings.I think the generated default in responders should be updated to
unprocessable_content, and it should be applied everywhere. That's a breaking change, so probably requires a minor or major version bump.