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

Removes 'require_dependency' from 'mobile' Module #12597

Merged
merged 0 commits into from
May 9, 2023

Conversation

gia-lexa
Copy link
Member

@gia-lexa gia-lexa commented May 9, 2023

Summary

The previous upgrade to Rails 6.x brought the addition of Zeitwerk, an internal code loader, which renders require_dependency statements unnecessary. As a result, we can remove these statements from our code.

This PR removes require_dependency specifically from the 'mobile' module. A separate PR is being submitted for each affected module.

This is part of an effort by Backend COP to remove some older code conventions that are no longer necessary as a result of Zeitwerk.

Issue(s)

Current Issue: Clean Up Use of 'require_dependency': department-of-veterans-affairs/va.gov-team#14688

Previous Related Work: Remove 'require_dependency' from App: #5787

Testing done

Redundant require_dependency statements removed and amended files pushed up.

Acceptance criteria

[ ] No error nor warning as a result of running the test suite.

Copy link
Contributor

@jperk51 jperk51 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gia-lexa gia-lexa merged commit 9ef083d into master May 9, 2023
@gia-lexa gia-lexa deleted the gia_14688_require_dependency_mobilemodule branch May 9, 2023 20:57
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.

3 participants