Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support XML and JSON inflector acronyms #416

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

seanpdoyle
Copy link

Related to #361

Add special-case treatment of JSON and XML acronyms by declaring aliases for the JsonFormat and XmlFormat constants.

In addition to the aliases, this commit also includes test coverage to cover existing behavior.

The original PR included a comment citing that
ActiveSupport::Inflector::Inflections#clear was not working as expected. It was resolved by a76344f, which was merged into main prior to the 7.0.0 release. Since the CI matrix currently includes 7-0-stable as the minimum version, the code can rely on the resolved behavior.

Related to rails#361

Add special-case treatment of JSON and XML acronyms by declaring aliases
for the `JsonFormat` and `XmlFormat` constants.

In addition to the aliases, this commit also includes test coverage to
cover existing behavior.

The original PR included a comment citing that
`ActiveSupport::Inflector::Inflections#clear` was not working as
expected. It was resolved by [a76344f][], which was merged into `main`
prior to the `7.0.0` release. Since the CI matrix currently includes
`7-0-stable` as the minimum version, the code can rely on the resolved
behavior.

[a76344f]: rails/rails@a76344f
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.

1 participant