From 295459f0ce3e021f02c05f350b2f06e5edd314b1 Mon Sep 17 00:00:00 2001 From: Marcelo Giorgi Date: Sun, 12 Sep 2010 12:18:33 -0300 Subject: [PATCH] Reference watch_namespaces in comments instead of watch_modules [#5620 state:resolved] --- activesupport/lib/active_support/dependencies.rb | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/activesupport/lib/active_support/dependencies.rb b/activesupport/lib/active_support/dependencies.rb index dc6484f..09bdb57 100644 --- a/activesupport/lib/active_support/dependencies.rb +++ b/activesupport/lib/active_support/dependencies.rb @@ -83,13 +83,13 @@ module ActiveSupport #:nodoc: super { |h,k| h[k] = [] } end - # return a list of new constants found since the last call to watch_modules + # return a list of new constants found since the last call to watch_namespaces def new_constants constants = [] # Grab the list of namespaces that we're looking for new constants under @watching.last.each do |namespace| - # Retrieve the constants that were present under the namespace when watch_modules + # Retrieve the constants that were present under the namespace when watch_namespaces # was originally called original_constants = self[namespace].last @@ -115,7 +115,7 @@ module ActiveSupport #:nodoc: end constants ensure - # A call to new_constants is always called after a call to watch_modules + # A call to new_constants is always called after a call to watch_namespaces pop_modules(@watching.pop) end -- 1.7.0.4