diff --git a/index.js b/index.js index cfdd1c65..d981af93 100644 --- a/index.js +++ b/index.js @@ -13,7 +13,7 @@ exports.__defineGetter__('BaseSQL', function () { exports.init = function (rw) { if (global.railway) { - railway.orm = exports; + global.railway.orm = exports; } else { rw.orm = {Schema: exports.Schema, AbstractClass: exports.AbstractClass}; }