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

Fix the Kernel#raise patch to be Ruby 3.2 compatible #691

Merged
merged 1 commit into from
Jan 9, 2023

Conversation

casperisfine
Copy link

raise can take a cause: keyword argument. This somehow worked until 3.1 but now longer does in 3.2.

e.g.

raise Error, "message", [], cause: nil

`raise` can take a `cause:` keyword argument. This somehow
worked until 3.1 but now longer does in 3.2.
@byroot byroot merged commit 77fbbfb into rails:main Jan 9, 2023
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