Added schema::model::set for railway

This commit is contained in:
Anatoliy Chakkaev 2013-01-21 20:29:41 +07:00
parent 1e79dbfc5f
commit d5758ec8be
1 changed files with 10 additions and 0 deletions

View File

@ -209,6 +209,16 @@ function prepareContext(models, railway, app, defSchema, done) {
if (cname) settings[cname].table = name;
};
/**
* Set configuration param
*
* @param name - name of param.
* @param value - value.
*/
ctx.set = function (name, value) {
if (cname) settings[cname][name] = value;
};
/**
* If the Schema has additional types, add them to the context
* e.g. MySQL has an additional Point type