Add module support for active record