From 85c68651bc0f0b240eb359d3827ec0dc7b8e0873 Mon Sep 17 00:00:00 2001 From: Rand McKinney Date: Tue, 29 Jul 2014 11:54:26 -0700 Subject: [PATCH] Fix jsdoc for remoteMethod() --- lib/models/model.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/models/model.js b/lib/models/model.js index c5fb92c2..aedb273e 100644 --- a/lib/models/model.js +++ b/lib/models/model.js @@ -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) {