Fixes a bug where two namespaces were sharing the same registry.
The symptom was that a paper-signs Page was instantiating a Papyrus::PageMetadata, because the WCC::Contentful::Model registry was in fact the same ruby hash as the Papyrus::Model registry. So, when the Papyrus::PageMetadata class got eager-loaded, it triggered the included hook which put it in the registry, and then the Paper Signs PageMetadata never got loaded.
Coverage increased (+0.005%) to 94.028% when pulling 5176c69c82febe088bb07be07205870e14b9653d on registry_fix into c5dc87ef70e3eaa3114349a6ea8de7de4d7e4590 on master.
Fixes a bug where two namespaces were sharing the same registry.
The symptom was that a paper-signs
Page
was instantiating aPapyrus::PageMetadata
, because theWCC::Contentful::Model
registry was in fact the same ruby hash as thePapyrus::Model
registry. So, when thePapyrus::PageMetadata
class got eager-loaded, it triggered theincluded
hook which put it in the registry, and then the Paper SignsPageMetadata
never got loaded.