diff options
author | Xavier Noria <fxn@hashref.com> | 2019-03-19 10:03:56 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2019-03-19 13:07:31 +0100 |
commit | 3d0850bfb8b6d0e4acce489a86353a21fd4df21a (patch) | |
tree | e8683bb1778854a58e60571da23af2ebd812a0d9 /activesupport/lib | |
parent | 4a797074e40916d85012461a92310b46d396428a (diff) | |
download | rails-3d0850bfb8b6d0e4acce489a86353a21fd4df21a.tar.gz rails-3d0850bfb8b6d0e4acce489a86353a21fd4df21a.tar.bz2 rails-3d0850bfb8b6d0e4acce489a86353a21fd4df21a.zip |
depend on Zeitwerk 1.4.0
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/dependencies/zeitwerk_integration.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/dependencies/zeitwerk_integration.rb b/activesupport/lib/active_support/dependencies/zeitwerk_integration.rb index e00307d257..c6fdade006 100644 --- a/activesupport/lib/active_support/dependencies/zeitwerk_integration.rb +++ b/activesupport/lib/active_support/dependencies/zeitwerk_integration.rb @@ -21,7 +21,11 @@ module ActiveSupport end def autoloaded_constants - (Rails.autoloaders.main.loaded + Rails.autoloaders.once.loaded).to_a + cpaths = [] + Rails.autoloaders.each do |autoloader| + cpaths.concat(autoloader.loaded_cpaths.to_a) + end + cpaths end def autoloaded?(object) |