!fixup use DataModel instead of Model for all data based models

This commit is contained in:
Ritchie Martori 2014-05-02 20:15:01 -07:00
parent e026a7f52c
commit ae2fb9dea0
3 changed files with 3 additions and 3 deletions

View File

@ -104,7 +104,7 @@ function createTestApp(testToken, done) {
app.use(loopback.rest()); app.use(loopback.rest());
app.enableAuth(); app.enableAuth();
var TestModel = loopback.Model.extend('test', {}, { var TestModel = loopback.DataModel.extend('test', {}, {
acls: [ acls: [
{ {
principalType: "ROLE", principalType: "ROLE",

View File

@ -18,7 +18,7 @@ describe('security scopes', function () {
beforeEach(function() { beforeEach(function() {
var ds = this.ds = loopback.createDataSource({connector: loopback.Memory}); var ds = this.ds = loopback.createDataSource({connector: loopback.Memory});
testModel = loopback.Model.extend('testModel'); testModel = loopback.DataModel.extend('testModel');
ACL.attachTo(ds); ACL.attachTo(ds);
Role.attachTo(ds); Role.attachTo(ds);
RoleMapping.attachTo(ds); RoleMapping.attachTo(ds);

View File

@ -9,7 +9,7 @@ describe('Change', function(){
Change = loopback.Change.extend('change'); Change = loopback.Change.extend('change');
Change.attachTo(memory); Change.attachTo(memory);
TestModel = loopback.Model.extend('chtest'); TestModel = loopback.DataModel.extend('chtest');
this.modelName = TestModel.modelName; this.modelName = TestModel.modelName;
TestModel.attachTo(memory); TestModel.attachTo(memory);
}); });