Merge pull request #168 from saschagehlich/railway_fix

fixed railway integration
This commit is contained in:
Anatoliy Chakkaev 2012-12-16 09:51:57 -08:00
commit 2dd747e678
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.init = function (rw) {
if (typeof rw === 'string') {
if (global.railway) {
railway.orm = exports;
} else {
rw.orm = {Schema: exports.Schema, AbstractClass: exports.AbstractClass};