Skip to content

Make ActionDispatch::Routing::RouteWrapper class private since it's o… #43451

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

Conversation

ignacio-chiazzo
Copy link
Contributor

@ignacio-chiazzo ignacio-chiazzo commented Oct 13, 2021

…nly used within Routing module.

Summary

While working on this issue I noticed that the class ActionDispatch::Routing::RouteWrapper was only used within Routing module as a decorator for route. I made it private so we don't use that module outside. no-doc

@rails-bot rails-bot bot added the actionpack label Oct 13, 2021
@ignacio-chiazzo ignacio-chiazzo force-pushed the ig/action_dispatch/inspector branch from 3889958 to f5ac6fc Compare October 13, 2021 20:57
@rafaelfranca
Copy link
Member

Thank you. We don't make constants private in Rails. It doesn't add much and just make harder to change the code.

@ignacio-chiazzo ignacio-chiazzo force-pushed the ig/action_dispatch/inspector branch from f5ac6fc to 4bb3ace Compare October 13, 2021 21:15
@ignacio-chiazzo ignacio-chiazzo marked this pull request as ready for review October 13, 2021 21:17
@ignacio-chiazzo ignacio-chiazzo force-pushed the ig/action_dispatch/inspector branch from 927efbd to 735a341 Compare October 13, 2021 22:02
@rafaelfranca rafaelfranca merged commit ea98781 into rails:main Oct 14, 2021
@p8 p8 mentioned this pull request Oct 13, 2023
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants