# File lib/active_support/dependencies.rb, line 123 def watch_namespaces(namespaces) watching = [] namespaces.map do |namespace| module_name = Dependencies.to_constant_name(namespace) original_constants = Dependencies.qualified_const_defined?(module_name) ? Inflector.constantize(module_name).local_constant_names : [] watching << module_name self[module_name] << original_constants end @watching << watching end