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 ActionView backtrace filtering on Ruby 3.4+ #51590

Merged
merged 1 commit into from
Apr 22, 2024

Conversation

jhawthorn
Copy link
Member

In Ruby 3.4+ backtraces are going to use a single quote rather than a backtick https://bugs.ruby-lang.org/issues/16495

This adjusts our backtrace cleaner regex to work with either format. I considered making it just work on whatever output we expect to see from the current Ruby version, but we are already using a regex here and this seemed much simpler.

@rails-bot rails-bot bot added the railties label Apr 17, 2024
@justinko
Copy link
Contributor

I vote to stay consistent with other areas of Rails.

@justinko
Copy link
Contributor

Sorry, I see you already considered that.

@jhawthorn jhawthorn merged commit 734719d into rails:main Apr 22, 2024
3 checks passed
@jhawthorn jhawthorn deleted the backtrace_cleaner_3_4 branch April 22, 2024 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants