strongloop/loopback-datasource-juggler — pull request #38 by raymondfeng (2013-11-09 01:20:09+00:00)
Title: Remove inheritence from DataSource to ModelBuilder

/to @ritch

This PR removes the inheritance from DataSource to ModelBuilder. The DataSource now embeds an instance of ModelBuilder which can be optionally passed from the DataSource constructor. It makes possible for multiple data sources to share the same ModelBuilder instance. This way, we can create relations between model classes attached to different data sources.