sails.js Use session param in model
This is an extension of this question . In my models, every one requires a companyId to be set on creation and every one requires models to be filtered by the same session held companyid. With sails.js , I have read and understand that session is not available in the model unless I inject it using the controller, however this would require me to code all my controller/actions with something very, very repetitive. Unfortunate. I like sails.js and want to make the switch, but can anyone describe to me a better way? I'm hoping I have just missed something. sgress454 So, if I understand you