Added support for scanning accepts params for Model references
This commit is contained in:
parent
464e37c1c9
commit
240898e7a5
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue