Merge pull request #1271 from strongloop/refactor/core-models
Refactor Model and PersistedModel registration
This commit is contained in:
commit
5a51c7f0fa
1538
lib/model.js
1538
lib/model.js
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -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', {
|
||||
|
|
Loading…
Reference in New Issue