From 707fb0171305a6625ebc97f2c5f4aad737ebfe09 Mon Sep 17 00:00:00 2001 From: Anatoliy Chakkaev Date: Wed, 23 Jan 2013 06:31:02 +0700 Subject: [PATCH] Make pathTo available in db/schema --- lib/railway.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/railway.js b/lib/railway.js index 46b45467..abb2cd1f 100644 --- a/lib/railway.js +++ b/lib/railway.js @@ -219,6 +219,8 @@ function prepareContext(models, railway, app, defSchema, done) { if (cname) settings[cname][name] = value; }; + ctx.pathTo = railway.map && railway.map.pathTo || {}; + /** * If the Schema has additional types, add them to the context * e.g. MySQL has an additional Point type