diff options
author | Xavier Noria <fxn@hashref.com> | 2019-03-15 22:50:04 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2019-03-15 22:59:03 +0100 |
commit | a47c84d584777238a6955e3a08436577c471af0f (patch) | |
tree | 54a0f8606823192c4f9716b6379f396dd9dd6483 /activesupport/lib | |
parent | 233927965d0bd79752274bbc7394d21efeda54c0 (diff) | |
download | rails-a47c84d584777238a6955e3a08436577c471af0f.tar.gz rails-a47c84d584777238a6955e3a08436577c471af0f.tar.bz2 rails-a47c84d584777238a6955e3a08436577c471af0f.zip |
Engines are reloaded in Zeitwerk mode [closes #35618]
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/dependencies/zeitwerk_integration.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/dependencies/zeitwerk_integration.rb b/activesupport/lib/active_support/dependencies/zeitwerk_integration.rb index 1e697e1ba5..e00307d257 100644 --- a/activesupport/lib/active_support/dependencies/zeitwerk_integration.rb +++ b/activesupport/lib/active_support/dependencies/zeitwerk_integration.rb @@ -71,8 +71,7 @@ module ActiveSupport end def autoload_once?(autoload_path) - Dependencies.autoload_once_paths.include?(autoload_path) || - Gem.path.any? { |gem_path| autoload_path.to_s.start_with?(gem_path) } + Dependencies.autoload_once_paths.include?(autoload_path) end def freeze_autoload_paths |