<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -485,24 +485,28 @@ module ActiveSupport #:nodoc:
       # Build the watch frames. Each frame is a tuple of
       #   [module_name_as_string, constants_defined_elsewhere]
       watch_frames = descs.collect do |desc|
-        if desc.is_a? Module
-          mod_name = desc.name
-          initial_constants = desc.local_constant_names
-        elsif desc.is_a?(String) || desc.is_a?(Symbol)
-          mod_name = desc.to_s
-
-          # Handle the case where the module has yet to be defined.
-          initial_constants = if qualified_const_defined?(mod_name)
-            mod_name.constantize.local_constant_names
+        begin
+          if desc.is_a? Module
+            mod_name = desc.name
+            initial_constants = desc.local_constant_names
+          elsif desc.is_a?(String) || desc.is_a?(Symbol)
+            mod_name = desc.to_s
+
+            # Handle the case where the module has yet to be defined.
+            initial_constants = if qualified_const_defined?(mod_name)
+              mod_name.constantize.local_constant_names
+            else
+              []
+            end
           else
-           []
+            raise Argument, &quot;#{desc.inspect} does not describe a module!&quot;
           end
-        else
-          raise Argument, &quot;#{desc.inspect} does not describe a module!&quot;
+          [mod_name, initial_constants]
+        rescue NameError
+          # mod_name isn't a valid constant name
+          nil
         end
-
-        [mod_name, initial_constants]
-      end
+      end.compact
 
       constant_watch_stack.concat watch_frames
 </diff>
      <filename>activesupport/lib/active_support/dependencies.rb</filename>
    </modified>
    <modified>
      <diff>@@ -901,6 +901,7 @@ Run `rake gems:install` to install the missing gems.
           components
           config
           lib
+          vendor
         ).map { |dir| &quot;#{root_path}/#{dir}&quot; }.select { |dir| File.directory?(dir) }
 
         paths.concat builtin_directories</diff>
      <filename>railties/lib/initializer.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>12118963acacc9c869bdd41ef8480a1a4e06d358</id>
    </parent>
  </parents>
  <author>
    <name>Matt Jones</name>
    <email>al2o3cr@gmail.com</email>
  </author>
  <url>http://github.com/rails/rails/commit/45ba4ec626b79dda8534f13b3eb01524e0734781</url>
  <id>45ba4ec626b79dda8534f13b3eb01524e0734781</id>
  <committed-date>2008-11-18T05:32:46-08:00</committed-date>
  <authored-date>2008-11-17T11:03:46-08:00</authored-date>
  <message>add vendor/ back to load paths; catch errors in constant loading

Signed-off-by: David Heinemeier Hansson &lt;david@loudthinking.com&gt;</message>
  <tree>84bccc98fa97cb7bfb5244bbd1c0890315b99d32</tree>
  <committer>
    <name>David Heinemeier Hansson</name>
    <email>david@loudthinking.com</email>
  </committer>
</commit>
