Merge pull request #1271 from strongloop/refactor/core-models

Refactor Model and PersistedModel registration
This commit is contained in:
Miroslav Bajtoš 2015-04-03 09:40:21 +02:00
commit 5a51c7f0fa
3 changed files with 2116 additions and 2107 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -431,8 +431,8 @@ registry.DataSource = DataSource;
* @private
*/
registry.Model = require('./model');
registry.PersistedModel = require('./persisted-model');
registry.Model = require('./model')(registry);
registry.PersistedModel = require('./persisted-model')(registry);
// temporary alias to simplify migration of code based on <=2.0.0-beta3
Object.defineProperty(registry, 'DataModel', {