Commit Graph

9 Commits

Author SHA1 Message Date
Miroslav Bajtoš 0fd7bf06b5 Register Models with Dynamic converter
Fix `RemoteConnector.prototype.resolve` to register new models with
strong-remoting's `Dynamic` type resolver.

Before this change, if loopback-connector-remoting ended up with its
own copy of strong-remoting, then the responses were not converted
from plain objects to model instances, because model converters
were registered with the other instances of strong-remoting.

This has a side-effect that when there is only one strong-remoting
instance in the app, then there will be multiple converters registered
for the same model. Since the code performing conversion takes into
account the first model only, this should not pose any issues.
2016-01-26 15:13:09 +01:00
Geoffroy ba1703fbea Clean up tests 2016-01-07 20:08:05 -08:00
Simon Ho 2b3f5171fe Create proxy methods for aliases 2015-03-28 11:39:49 -07:00
Ritchie Martori f02d71be1f Add include mixin 2014-12-19 14:30:56 -08:00
Miroslav Bajtoš 61a4dd939f Fix support for browsers
Use `process.nextTick` instead of `setImmediate`, as the latter is
not a standard API.

https://developer.mozilla.org/en-US/docs/Web/API/Window.setImmediate
2014-10-10 10:29:23 +02:00
Ritchie Martori bf94e0a53f Call resolve when defining Models 2014-10-01 14:36:34 -07:00
Krishna Raman 3db9e34cc4 Fix relation access via remote connector 2014-09-25 15:17:55 -07:00
Krishna Raman 2df5b726b1 Fix formatting 2014-09-25 14:20:26 -07:00
Krishna Raman 724fd7d99c Move remote connector from loopback 2014-09-25 14:20:22 -07:00