sails-inject-models
v0.0.2
Published
Inject additional sails.js models from inside a hook
Downloads
16
Maintainers
Readme
-inject-models
Install
$ npm install sails-inject-models --saveUsage
e.g. with sails-permissions:
// api/hooks/permissions.js
module.exports = require('sails-permissions');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:
