diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2018-01-26 13:45:08 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-26 13:45:08 -0500 |
commit | 2f9549d4f46ca1f9cc437d4f89bd8df405e28dbd (patch) | |
tree | f03146dadfc7ecd0a15dd2216f0f4a9dcbeffa00 /activesupport/lib | |
parent | ce6461992f6521261b9ff5ae43d47814727de39e (diff) | |
parent | d92fb27885ddcb0a92ac67f69bf0eb8c912f4dc7 (diff) | |
download | rails-2f9549d4f46ca1f9cc437d4f89bd8df405e28dbd.tar.gz rails-2f9549d4f46ca1f9cc437d4f89bd8df405e28dbd.tar.bz2 rails-2f9549d4f46ca1f9cc437d4f89bd8df405e28dbd.zip |
Merge pull request #31803 from rmosolgo/rm-dependencies
Fix infinite loop when unloading autoloaded modules
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/dependencies.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/dependencies.rb b/activesupport/lib/active_support/dependencies.rb index abc648e0c6..0f59558bb5 100644 --- a/activesupport/lib/active_support/dependencies.rb +++ b/activesupport/lib/active_support/dependencies.rb @@ -447,6 +447,7 @@ module ActiveSupport #:nodoc: mod = Module.new into.const_set const_name, mod autoloaded_constants << qualified_name unless autoload_once_paths.include?(base_path) + autoloaded_constants.uniq! mod end |