lib/active_support/dependencies.rb in activesupport-5.0.6 vs lib/active_support/dependencies.rb in activesupport-5.0.7
- old
+ new
@@ -455,9 +455,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