Could we get this small patch applied?
It adds a log warning to help track down the cause of the dreaded:
"LoadError: Expected /foo.rb to define Foo" message. These errors can
be frustrating to track down, as they are almost always related to
missing dependencies or slight typos in constant names, and are
probably total show stoppers for newbies.