Fixing the model attach

This commit is contained in:
wfgomes 2014-11-17 00:00:54 -03:00
parent b2d9f662e5
commit e8cb132ed6
1 changed files with 1 additions and 3 deletions

View File

@ -9,9 +9,7 @@ var schema = {
var Color = app.model('color', schema);
app.dataSource('db', {adapter: 'memory'});
Color.dataSource('db');
app.dataSource('db', {adapter: 'memory'}).attach(Color);
Color.create({name: 'red'});
Color.create({name: 'green'});