Skip to content

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