Fixing Railway Hoisting Issue

orm is defined on the var declared two lines below the if block and not on the expected global reference
This commit is contained in:
Dan Shultz 2013-02-01 09:07:00 -05:00
parent cdd328c902
commit bbf94dee15
1 changed files with 1 additions and 1 deletions

View File

@ -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};
}