diff --git a/index.js b/index.js index 74ab6807..d734fff9 100644 --- a/index.js +++ b/index.js @@ -18,7 +18,10 @@ exports.init = function (rw) { rw.orm = {Schema: exports.Schema, AbstractClass: exports.AbstractClass}; } var railway = './lib/railway'; - require(railway)(rw); + try { + var init = require(railway); + } catch (e) {} + if (init) init(rw); }; exports.__defineGetter__('version', function () {