Merge pull request #164 from STRML/master

DAO.prototype.exists should return 'boolean' type.
This commit is contained in:
Raymond Feng 2014-07-08 13:52:19 -07:00
commit 42c6973979
1 changed files with 1 additions and 1 deletions

View File

@ -330,7 +330,7 @@ setRemoting(DataAccessObject.exists, {
description: 'Check whether a model instance exists in the data source', description: 'Check whether a model instance exists in the data source',
accepts: {arg: 'id', type: 'any', description: 'Model id', required: true, accepts: {arg: 'id', type: 'any', description: 'Model id', required: true,
http: {source: 'path'}}, http: {source: 'path'}},
returns: {arg: 'exists', type: 'any'}, returns: {arg: 'exists', type: 'boolean'},
http: {verb: 'get', path: '/:id/exists'} http: {verb: 'get', path: '/:id/exists'}
}); });