activeadmin / inherited_resources

MIT License
2.7k stars 393 forks source link

Prefer require_relative for internal requires #939

Closed tagliala closed 1 month ago

tagliala commented 1 month ago

require_relative is preferred over require for files within the same project because it uses paths relative to the current file, making code more portable and less dependent on the load path.

This change updates internal requires to use require_relative for consistency, performance, and improved portability.

Ref:

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 98.92%. Comparing base (9cabeb6) to head (e20fa1a). Report is 3 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #939 +/- ## ======================================= Coverage 98.92% 98.92% ======================================= Files 14 14 Lines 557 557 ======================================= Hits 551 551 Misses 6 6 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.