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

Use absolute paths for internal autoloads #669

Merged
merged 1 commit into from
Jul 24, 2019
Merged

Use absolute paths for internal autoloads #669

merged 1 commit into from
Jul 24, 2019

Conversation

deivid-rodriguez
Copy link
Contributor

This is a follow up to #668.

In bundler, I didn't want to rely on the LOAD_PATH for any internal requires because of the reasons given in #668.

But there's no autoload_relative in ruby, although there's a feature request: https://bugs.ruby-lang.org/issues/15330.

So my workaround was to instead require an absolute path, so that the LOAD_PATH is still not used.

So that we don't need to rely on the LOAD_PATH.
@rafaelfranca rafaelfranca merged commit 4c85986 into rails:master Jul 24, 2019
@deivid-rodriguez deivid-rodriguez deleted the use_absolute_paths_for_internal_autoloads branch July 24, 2019 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants