From ecc142b4d2bf256e758da1b5405103d04e6138f8 Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Mon, 26 Aug 2013 10:54:15 -0700 Subject: [PATCH] Disable remoting for reload --- lib/dao.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/dao.js b/lib/dao.js index 267ab392..85741acc 100644 --- a/lib/dao.js +++ b/lib/dao.js @@ -765,10 +765,12 @@ DataAccessObject.prototype.reload = function reload(callback) { this.constructor.findById(getIdValue(this.constructor, this), callback); }; +/* setRemoting(DataAccessObject.prototype.reload, { description: 'Reload a model instance from the data source', returns: {arg: 'data', type: 'object', root: true} }); +*/ /** * Define readonly property on object