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

Refactor ViewPath::Registry into path ActionView::PathRegistry #47487

Conversation

nickborromeo
Copy link
Contributor

Motivation / Background

In #47347 ActionView::ViewPath::Registry was introduced. In a recent upgrade to rails, we found that this change conflicted with a top level module called Registry. Instead of fixing the changes locally, it was suggested by @matthewd that we fix the namespace conflicts upstream instead.

Detail

This moves the Registry module under ViewPath into its own module under ActionView called PathRegistry. Functionally there should be no change in the changes introduced in #47347.

@nickborromeo nickborromeo force-pushed the refactor-viewpath-registry-into-path-registry branch from 00af078 to 075d6e9 Compare February 24, 2023 00:24
This is a refactor of the `Registry` module added in rails#47347. This is an attempt to
minimize the namespace conflcits that will happen when users will have a top level `Registry` module which can cause
incorrect behavior

Replace ActionView::ViewPaths::Registry with ActionView::PathRegistry
@nickborromeo nickborromeo force-pushed the refactor-viewpath-registry-into-path-registry branch from 075d6e9 to 92216eb Compare February 24, 2023 00:54
@nickborromeo nickborromeo marked this pull request as ready for review February 24, 2023 01:14
@jhawthorn jhawthorn merged commit 7b5e2f3 into rails:main Feb 24, 2023
@jhawthorn
Copy link
Member

Thank you!

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.

None yet

2 participants