diff options
author | Xavier Noria <fxn@hashref.com> | 2019-07-25 23:02:03 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2019-07-25 23:14:29 +0200 |
commit | 59c6d29ffac990ab16e162d79aba12e13232a896 (patch) | |
tree | a686b2a0ebc903c002d2fe0964fd8a2850dee61b /activesupport/lib/active_support/dependencies/zeitwerk_integration.rb | |
parent | 7f21e04e618513aff1674ed767294a94a903dd51 (diff) | |
download | rails-59c6d29ffac990ab16e162d79aba12e13232a896.tar.gz rails-59c6d29ffac990ab16e162d79aba12e13232a896.tar.bz2 rails-59c6d29ffac990ab16e162d79aba12e13232a896.zip |
let autoloaded? support modules with overridden names [closes #36757]
Diffstat (limited to 'activesupport/lib/active_support/dependencies/zeitwerk_integration.rb')
-rw-r--r-- | activesupport/lib/active_support/dependencies/zeitwerk_integration.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/dependencies/zeitwerk_integration.rb b/activesupport/lib/active_support/dependencies/zeitwerk_integration.rb index 821e3f971e..f75083a05a 100644 --- a/activesupport/lib/active_support/dependencies/zeitwerk_integration.rb +++ b/activesupport/lib/active_support/dependencies/zeitwerk_integration.rb @@ -28,7 +28,7 @@ module ActiveSupport end def autoloaded?(object) - cpath = object.is_a?(Module) ? object.name : object.to_s + cpath = object.is_a?(Module) ? real_mod_name(object) : object.to_s Rails.autoloaders.main.unloadable_cpath?(cpath) end |