fdvj/wolfpack — pull request #4 by nlt2390 (2014-05-08 07:49:25+00:00)
Title: fix wolfpack model require

When I create a file "test.js" in my root project folder (using Sails) with following content:

var wolfpack = require('wolfpack'),
myModel = wolfpack('/api/models/MyModel');

WolfPack cannot find MyModel file because it expects that file in wolfpack\lib\node_modules\api\models\MyModel

try {
model = require(model_path);
}