Fix jsdoc for remoteMethod()

This commit is contained in:
Rand McKinney 2014-07-29 11:54:26 -07:00
parent 71f9dbd4b0
commit 85c68651bc
1 changed files with 6 additions and 4 deletions

View File

@ -320,13 +320,15 @@ Model.getApp = function(callback) {
/**
* Enable remote invocation for the method with the given name.
* See [Remote methods and hooks](http://docs.strongloop.com/display/LB/Remote+methods+and+hooks for more information.
* Static method example:
* ```js
* Model.myMethod();
* Model.remoteMethod('myMethod');
* ```
*
* @param {String} name The name of the method.
* ```js
* // static method example (eg. Model.myMethod())
* Model.remoteMethod('myMethod');
* @param {Object} options The remoting options.
* See [loopback.remoteMethod()](http://docs.strongloop.com/display/DOC/Remote+methods+and+hooks#Remotemethodsandhooks-loopback.remoteMethod(fn,[options])) for details.
*/
Model.remoteMethod = function(name, options) {