From 67e5845369161f02c655cbd4207ef92470ffe321 Mon Sep 17 00:00:00 2001 From: Sascha Gehlich Date: Sun, 16 Dec 2012 13:50:30 +0100 Subject: [PATCH] fixed railway integration --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index d5e38509..8efe4592 100644 --- a/index.js +++ b/index.js @@ -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};