-inject-models
Install
$ npm install sails-inject-models --save
Usage
e.g. with sails-permissions:
// api/hooks/permissions.jsmoduleexports = ;
The additional models User
, Role
, Permission
, and Model
will be initialized and available in the global namespace.
License
MIT
Attribution
Much of this implementation is adapted from: