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

chore: Use enum with positional arguments #3077

Merged
merged 1 commit into from
Jan 20, 2025

Conversation

julienbourdeau
Copy link
Contributor

Context

Let's get ready for Rails 7.2

Description

I was looking at Ancor's PR to upgrade to Rails 7.2 and I thought we could extracted the enum changes to a separate PR since the syntax is already available.

Rails 7.2 will show a warning if we keep using the previous syntax (with a hash) and 8.0 will remove it entirely.

https://blog.saeloun.com/2021/02/26/rails-introduces-new-syntax-for-enum/

This syntax was introduced in Rails 7. The previous syntax will be deprecated in 7.2 and removed in 8,0.
@julienbourdeau julienbourdeau self-assigned this Jan 20, 2025
@julienbourdeau julienbourdeau merged commit 6227d6b into main Jan 20, 2025
6 checks passed
@julienbourdeau julienbourdeau deleted the chore/enum-use-positional-args branch January 20, 2025 15:09
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