Added support for scanning accepts params for Model references

This commit is contained in:
Shelby Sanders 2014-09-17 19:02:39 -07:00
parent 464e37c1c9
commit 240898e7a5
1 changed files with 6 additions and 0 deletions

View File

@ -92,6 +92,12 @@ var modelHelper = module.exports = {
var remotes = modelClass.sharedClass.methods();
for (var remoteIdx in remotes) {
var remote = remotes[remoteIdx];
var accepts = remote.accepts;
if (accepts) {
for (var acceptIdx in accepts) {
processType(modelClass.app, accepts[acceptIdx].type, out);
}
}
var returns = remote.returns;
if (returns) {
for (var returnIdx in returns) {