lib/active_support/dependencies.rb in activesupport-5.1.4 vs lib/active_support/dependencies.rb in activesupport-5.1.5.rc1
- old
+ new
@@ -454,9 +454,10 @@
def autoload_module!(into, const_name, qualified_name, path_suffix)
return nil unless base_path = autoloadable_module?(path_suffix)
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
# Load the file at the provided path. +const_paths+ is a set of qualified
# constant names. When loading the file, Dependencies will watch for the