This will allow to define an arbitrary #initialize method in the (custom) class to be used as the generated schema's superclass. Furthermore, since the schema metadata will be encapsulated inside a module instance, this opens up interesting possibilities like including only parts of the registered relations into (various) schema classes, providing more isolation and separation of concerns. This would be somewhat akin to alf's concept of viewpoints.
This will allow to define an arbitrary
#initialize
method in the (custom) class to be used as the generated schema's superclass. Furthermore, since the schema metadata will be encapsulated inside a module instance, this opens up interesting possibilities like including only parts of the registered relations into (various) schema classes, providing more isolation and separation of concerns. This would be somewhat akin to alf's concept of viewpoints.