From f02d71be1f17e2ff5f7f47bb3c1bdda1658c65fe Mon Sep 17 00:00:00 2001 From: Ritchie Martori Date: Fri, 19 Dec 2014 14:30:56 -0800 Subject: [PATCH] Add include mixin --- lib/remote-connector.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/remote-connector.js b/lib/remote-connector.js index e351932..08e5708 100644 --- a/lib/remote-connector.js +++ b/lib/remote-connector.js @@ -6,6 +6,7 @@ var assert = require('assert'); var remoting = require('strong-remoting'); var jutil = require('loopback-datasource-juggler/lib/jutil'); var RelationMixin = require('./relations'); +var InclusionMixin = require('loopback-datasource-juggler/lib/include'); /** * Export the RemoteConnector class. @@ -39,6 +40,7 @@ function RemoteConnector(settings) { // handle mixins in the define() method var DAO = this.DataAccessObject = function() { }; + } RemoteConnector.prototype.connect = function() { @@ -62,6 +64,7 @@ RemoteConnector.prototype.define = function(definition) { ' to a remote connector without a Model.sharedClass'); jutil.mixin(Model, RelationMixin); + jutil.mixin(Model, InclusionMixin); remotes.addClass(Model.sharedClass); this.resolve(Model); };