From 1a8ba602ccd8c264416c533ac017995af0e68c15 Mon Sep 17 00:00:00 2001 From: Ritchie Martori Date: Tue, 20 May 2014 13:45:47 -0700 Subject: [PATCH] !fixup Mark DAO methods as delegate Allow juggler to mix in these methods. --- lib/models/data-model.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/models/data-model.js b/lib/models/data-model.js index 973ed7b4..91bbc4a8 100644 --- a/lib/models/data-model.js +++ b/lib/models/data-model.js @@ -403,6 +403,7 @@ DataModel.setupRemoting = function() { function setRemoting(scope, name, options) { var fn = scope[name]; + fn._delegate = true; options.isStatic = scope === DataModel; DataModel.remoteMethod(name, options); }