Skip to content

Ruby: ActionDispatch - support path => target route format #16650

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

Merged
merged 6 commits into from
Jun 18, 2024

Conversation

alexrford
Copy link
Contributor

We previously did not recognize the controller/action for routes of the form:

  get '/somepath' => 'some_controller#some_action'

This PR adds support for this format, and renames some fields and variables for consistency and clarity.

@alexrford alexrford added the Ruby label Jun 3, 2024
@alexrford alexrford marked this pull request as ready for review June 13, 2024 12:48
@alexrford alexrford requested a review from a team as a code owner June 13, 2024 12:48
@alexrford
Copy link
Contributor Author

Marking as ready for review. I've found one project with notable performance regressions, but it uses this route format extensively and we resolve about 20x as many route -> action strings, so I think this is a worthwhile tradeoff.

@alexrford alexrford added the no-change-note-required This PR does not need a change note label Jun 13, 2024
@alexrford alexrford merged commit 6c3d90e into github:main Jun 18, 2024
@alexrford alexrford deleted the rb/routing-improvements branch June 18, 2024 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-change-note-required This PR does not need a change note Ruby
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants