fixed railway integration

This commit is contained in:
Sascha Gehlich 2012-12-16 13:50:30 +01:00
parent 9fed918db8
commit 67e5845369
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ exports.Validatable = require('./lib/validatable').Validatable;
exports.BaseSQL = require('./lib/sql'); exports.BaseSQL = require('./lib/sql');
exports.init = function (rw) { exports.init = function (rw) {
if (typeof rw === 'string') { if (global.railway) {
railway.orm = exports; railway.orm = exports;
} else { } else {
rw.orm = {Schema: exports.Schema, AbstractClass: exports.AbstractClass}; rw.orm = {Schema: exports.Schema, AbstractClass: exports.AbstractClass};