diff options
author | Marcelo Giorgi <marklazz.uy@gmail.com> | 2010-09-13 17:53:39 -0300 |
---|---|---|
committer | Marcelo Giorgi <marklazz.uy@gmail.com> | 2010-09-13 17:53:39 -0300 |
commit | d5ef502d2a7968957376db453177183af062a2b1 (patch) | |
tree | 92c34ef10e7b2640870fc70a2d537b3ebfa5877e | |
parent | 3683745cbc94a60e1cf60d86c9cb62f067182de3 (diff) | |
download | rails-d5ef502d2a7968957376db453177183af062a2b1.tar.gz rails-d5ef502d2a7968957376db453177183af062a2b1.tar.bz2 rails-d5ef502d2a7968957376db453177183af062a2b1.zip |
Reference watch_namespaces in comments instead of watch_modules
-rw-r--r-- | 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 dc6484f387..09bdb577ad 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 |