That require_dependency is here to workaround a limitation in Rails's Classic autoloader (as explained here).
Since Rails 6, there's a new autoloader available, which doesn't have this limitation, as well as an option to not add autoloaded paths to the global $LOAD_PATH.
Ref: https://github.com/rails/rails/pull/37599
That
require_dependency
is here to workaround a limitation in Rails's Classic autoloader (as explained here).Since Rails 6, there's a new autoloader available, which doesn't have this limitation, as well as an option to not add autoloaded paths to the global
$LOAD_PATH
.That later option breaks
latter_opener_web
.@pseudomuto @rafaelfranca @Edouard-Chin @etiennebarrie