mirror of
https://github.com/heartcombo/devise.git
synced 2026-01-10 08:08:00 -05:00
Rack has deprecated `:unprocessable_entity` in favor of `:unprocessable_content`, but the former has been used extensively for years. Rails is now transparently converting that under the hood to avoid the warnings, but our failure app wasn't going through the same handling since it's more low level and responds to Rack directly. This introduces the Rails translation handling if available on newer versions, falling back to the Rack conversion which might emit the warning if using `:unprocessable_entity` on Rack 3.1+ To fully fix it, people can configure their `error_status` to `:unprocessable_content` on newer versions of Rack. The default for new Devise apps will also change. https://github.com/rack/rack/pull/2137