This project is archived and is in readonly mode.
Problem with autoload and nested modules/classes
-
Andrew White
- State changed from new to duplicate
- Importance changed from to Low
This is a duplicate of #5383 AS dependencies resolver broken: not missing constant error - if you rewrite your class definitions so that they're not inline everything will work, e.g:
module Gate class Flight; end class Receiver Flight #load Flight end endThis is because Ruby searches for constants in Object first when defined as ModuleName::ClassName but inside the parent module when nested properly.
