Skip to content

Conversation

@seanpdoyle
Copy link
Contributor

@seanpdoyle seanpdoyle commented Oct 20, 2025

The ActiveResource::Validations#from_json method emits deprecation warnings when handling error response payloads that resemble the following:

{"errors":["First cannot be empty"]}

{"first":["cannot be empty"]}

The deprecation was originally introduced in c643605 (Feb 4, 2012). This commit removes documentation mentions of backwards-compatibility along with the conditional branches that emit the deprecation warnings.

The removal of the backwards support is a breaking change.

The `ActiveResource::Validations#from_json` method emits deprecation
warnings when handling error response payloads that resemble the
following:

```
{"errors":["First cannot be empty"]}

{"first":["cannot be empty"]}
```

The deprecation was originally introduced in [c643605][] (Feb 4, 2012).
This commit removes documentation mentions of backwards-compatibility
along with the conditional branches that emit the deprecation warnings.

The removal of the backwards support is a breaking change.

[c643605]: rails@c643605
@rafaelfranca rafaelfranca merged commit 3f3dd66 into rails:main Oct 22, 2025
19 checks passed
@seanpdoyle seanpdoyle deleted the remove-rails-3-1-deprecation branch October 22, 2025 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants