Make pathTo available in db/schema
This commit is contained in:
parent
16a55a1bce
commit
707fb01713
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue