Use the reqs body for constructing models

This commit is contained in:
Ritchie Martori 2013-06-24 12:04:27 -07:00
parent 130b596786
commit e10b2f639e
1 changed files with 2 additions and 2 deletions

View File

@ -197,8 +197,8 @@ asteroid.createModel = function (name, properties, options) {
}; };
ModelCtor.sharedCtor.accepts = [ ModelCtor.sharedCtor.accepts = [
{arg: 'data', type: 'object'}, {arg: 'data', type: 'object', http: {source: 'body'}},
{arg: 'id', type: 'any'} {arg: 'id', type: 'any', http: {source: 'url'}}
]; ];
ModelCtor.sharedCtor.http = [ ModelCtor.sharedCtor.http = [