Make pathTo available in db/schema

This commit is contained in:
Anatoliy Chakkaev 2013-01-23 06:31:02 +07:00
parent 16a55a1bce
commit 707fb01713
1 changed files with 2 additions and 0 deletions

View File

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