Automatically add asset manager and view manager config to module configs
Refactor active record class