diff options
author | Xavier Noria <fxn@hashref.com> | 2019-07-28 13:49:26 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2019-07-28 14:09:01 +0200 |
commit | bfc9065d58508fb19dd1a4170406604dd3b3234a (patch) | |
tree | a726cc631382a206ef6bd5f5bee9214a7764a615 /tools/README.md | |
parent | 71e41a5b9495ba6ebe3cdf1e10afa27bcc0db208 (diff) | |
download | rails-bfc9065d58508fb19dd1a4170406604dd3b3234a.tar.gz rails-bfc9065d58508fb19dd1a4170406604dd3b3234a.tar.bz2 rails-bfc9065d58508fb19dd1a4170406604dd3b3234a.zip |
Improves compatibility of require_dependency in zeitwerk mode [Closes #36774]
Applications are not supposed to use require_dependency in their own
code if running in zeitwerk mode, and require_dependency was initially
aliased to require with that use case in mind.
However, there are situations in which you cannot control the mode and
need to be compatible with both. There, you might need require_dependency
in case you are being executed in classic mode. Think about engines that
want to support both modes in their parent applications, for example.
Furthermore, Rails itself loads helpers using require_dependency.
Therefore, we need better compatibility.
Diffstat (limited to 'tools/README.md')
0 files changed, 0 insertions, 0 deletions