Pull model description from ctor.settings first

This commit is contained in:
Shelby Sanders 2014-08-06 23:52:59 -07:00 committed by Miroslav Bajtoš
parent 65be2833a2
commit 37179f3e61
1 changed files with 2 additions and 1 deletions

View File

@ -43,7 +43,8 @@ var classHelper = module.exports = {
generateResourceDocAPIEntry: function(aClass) {
return {
path: aClass.http.path,
description: aClass.ctor.sharedCtor && aClass.ctor.sharedCtor.description
description: aClass.ctor.settings.description ||
aClass.ctor.sharedCtor && aClass.ctor.sharedCtor.description
};
}
};