class ActiveSupport::Dependencies::WatchStack
def watch_namespaces(namespaces)
Add a set of modules to the watch stack, remembering the initial
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).constants(false) : [] @stack[module_name] << original_constants module_name end end